action for usable items
the POCKET message is used to indicate the character reaching into its pocket before and after using the item
ACT is used to indicate the character actually using the item and for its effects to occur
https://adventure.softleitner.com/manual/acting
|
override bool | CanStart (CharacterActorBase actor) |
|
override void | OnStart (CharacterActorBase actor, bool jumpStart=false) |
|
override void | OnEnd (CharacterActionBase next) |
|
override void | OnMessage (string parameter) |
|
void | ShowSlot () |
|
void | HideSlot () |
|
void | BindInput (InputAction inputAction) |
|
void | UnbindInput (InputAction inputAction) |
|
virtual void | Input (InputAction.CallbackContext callbackContext) |
|
virtual void | Input (InputAction.CallbackContext callbackContext, CharacterActorBase actor) |
|
virtual void | InputClick (CharacterActorBase actor) |
|
virtual void | InputDown (CharacterActorBase actor) |
|
virtual void | InputUp (CharacterActorBase actor) |
|
virtual bool | CanEnd (CharacterActionBase next) |
|
void | StartAction () |
| overload of StartAction(bool, bool) without a return type so it can be found in event triggers in the inspector
|
|
bool | StartAction (bool jumpStart=false, bool force=false) |
|
virtual bool | StartAction (CharacterActorBase actor, bool jumpStart=false, bool force=false) |
|
virtual void | EndAction () |
|
virtual void | AddAction (CharacterActorBase actor) |
|
virtual void | RemoveAction (CharacterActorBase actor) |
|
virtual void | SendCharacterMessages (string e) |
|
virtual void | SendCharacterMessage (string e) |
|
virtual void | MoveCharacter (Transform transform) |
|
virtual void | OnInput (bool parameter) |
|
virtual void | OnInput (int parameter) |
|
virtual void | OnInput (Vector2 parameter) |
|
virtual string | GetName () |
|
|
override void | OnDestroy () |
|
virtual void | createAnimation () |
|
virtual void | cancelAnimation () |
|
virtual void | endAnimation (CharacterActionBase _) |
|
virtual void | onAnimationFinished (PlayableAnimation a) |
|
override void | setTrigger (int id) |
|
override void | setBool (int id, bool value) |
|
override void | setInt (int id, int value) |
|
override void | setFloat (int id, float value) |
|
override void | setState (int id) |
|
virtual void | OnEnable () |
|
virtual void | OnDisable () |
|
void | onCanStartChanged () |
|
void | onCanEndChanged () |
|
void | addInstructions (IEnumerable< CharacterInstructionBase > instructions) |
|
void | removeInstructions (IEnumerable< CharacterInstructionBase > instructions) |
|
void | addInstruction (CharacterInstructionBase instruction) |
|
void | removeInstruction (CharacterInstructionBase instruction) |
|
PlayableAnimation | _animation |
|
bool | _isDestroyed = false |
|
Action< bool > | IsAvailableChanged |
| IsAvailable asserts whether an action is availabel at all, even if it can't be started.
|
|
Action< bool > | IsHappeningChanged |
| fired when the action starts and ends
|
|
Action< CharacterActionBase > | CanStartChanged |
| fired when whether the action can be started changes
|
|
Action< CharacterActionBase > | CanEndChanged |
| fired when whether the action can be ended changes
some actions can be ended before they end on their own(released motions for example)
|
|