Table of Contents

Class SinkBehavior

Namespace
TinyLife.Actions.Behaviors
Assembly
Tiny Life.dll

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)

Creates a new action behavior with the given underlying action. To create an action behavior of a given type automatically, use CreateDefaultInstance(Type, Action).

public SinkBehavior(Action action)

Parameters

action Action

The action that this behavior is acting upon

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

IEnumerable<Action>

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)

Parameters

time GameTime

The game time

passedInGame TimeSpan

The amount of time that has passed since the last update frame

speedMultiplier float

The game speed multiplier, which represents how fast things should happen, which is usually determined by Speed