Loading...
Searching...
No Matches
AdventureCore.CharacterInstructionBase Class Referenceabstract

Detailed Description

a character instruction can be any kind of change applied to a character
all these changes(movement speed, collision suspension, ...) could be just directly applied without creating an instruction
bundling them in this form averts the problem of different components fighting for control(eg. both an animation and an item reduce movement speed at the same time)
another advantage of instructions is that they can be added directly in the inspector which can add lots of flexibility to actions
IF UNITY RANDOMLY DECIDES THAT AN INSTRUCTION IS SUDDENLY NULL TRY REIMPORTING ALL ASSETS TO CLEAR CACHE

Inheritance diagram for AdventureCore.CharacterInstructionBase:
AdventureCore.AnimatorBoolInstruction AdventureCore.AnimatorFloatInstruction AdventureCore.AnimatorIntInstruction AdventureCore.AnimatorSpeedMultiplierInstruction AdventureCore.Assets.SoftLeitner.AdventureCore.Character.Instructions.DebugInstruction AdventureCore.AttributeMultiplierInstruction AdventureCore.HideCharacterInstruction AdventureCore.HideSlotInstruction AdventureCore.MovementMotionMultiplierInstruction AdventureCore.MovementSpeedMultiplierInstruction AdventureCore.StatMultiplierInstruction AdventureCore.SuspendControlInstruction AdventureCore.SuspendMovementCollisionInstruction AdventureCore.SuspendMovementControlInstruction AdventureCore.SuspendMovementInstruction AdventureCore.SuspendMovementPartsInstruction AdventureCore.SuspendMovementPersistenceInstruction AdventureCore.SuspendReceiveDamageInstruction AdventureCore.SuspendSendDamageInstruction AdventureHero.HeroActionOverrideInstruction AdventureSouls.SoulsHideHUDInstruction AdventureSouls.SoulsHideWeaponsInstruction AdventureSouls.SoulsSuspendActingInstruction

Public Member Functions

void Reset (CharacterBase character)
 reset whatever the instruction is affecting to its original value or remove whatever influence the instruction has had from the character
 
void Apply (CharacterBase character)
 apply the instruction, whenever a new instruction is added all instructions are reset and applied again
 

Properties

object Owner [get, set]
 

Member Function Documentation

◆ Apply()

void AdventureCore.CharacterInstructionBase.Apply ( CharacterBase character)
abstract

apply the instruction, whenever a new instruction is added all instructions are reset and applied again

Parameters
characterthe character the instructio is applied to

◆ Reset()

void AdventureCore.CharacterInstructionBase.Reset ( CharacterBase character)
abstract

reset whatever the instruction is affecting to its original value or remove whatever influence the instruction has had from the character

Parameters
characterthe character the instructio is applied to