Class SinkBehavior
An ActionBehavior for an action that is invoked at a ExtremelySimpleLogger.Sink. If the sink is not the main GetActionObject<T>(bool), it should be added as an auxiliary object using AddAuxiliaryObject(MapObject, ActionSpot) in AndThenInitialize(). This behavior automatically displays a running water sound and sets the active person's pose to a working version using ToWorking(Pose).
public class SinkBehavior : ActionBehavior
- Inheritance
-
SinkBehavior
- Inherited Members
- Extension Methods
Constructors
SinkBehavior(Action, bool)
public SinkBehavior(Action action, bool washingSound)
Parameters
Methods
CreateFirstActions()
Creates a set of actions that should be executed before the main Action starts. This method is automatically called when using BehaviorAction in CreateFirstActions().
public override IEnumerable<Action> CreateFirstActions()
Returns
OnCompleted(CompletionType)
Causes any activities that this action behavior executes to be marked as completed. This method is automatically called when using BehaviorAction in OnCompleted(CompletionType).
public override void OnCompleted(CompletionType completion)
Parameters
completion
CompletionType
Update(GameTime, TimeSpan, float)
Updates this action behavior every update frame. This method is automatically called when using BehaviorAction in AndThenUpdate(GameTime, TimeSpan, float).
public override void Update(GameTime time, TimeSpan passedInGame, float speedMultiplier)