Table of Contents

Class TakeOffClothesAction

Namespace
TinyLife.Actions
Assembly
TinyLife.dll

An action that causes a person to take off their clothes, setting IsNaked to true in the process. To construct instances of this class, use Construct(PersonLike). This method can generally be combined with ChangeOutfitIntentionAction.

public class TakeOffClothesAction : Action, IGenericDataHolder
Inheritance
JsonTypeSafeGenericDataHolder
TakeOffClothesAction
Implements
IGenericDataHolder
Inherited Members
JsonTypeSafeGenericDataHolder.GetDataKeys()
Extension Methods

Constructors

TakeOffClothesAction(ActionType, ActionInfo)

Creates a new action with the given action information.

public TakeOffClothesAction(ActionType type, ActionInfo info)

Parameters

type ActionType

The type for this action.

info ActionInfo

The information for this action.

Methods

Construct(PersonLike)

Constructs a new instance of TakeOffClothesAction and returns it, or returns null if the given person is already naked.

public static TakeOffClothesAction Construct(PersonLike person)

Parameters

person PersonLike

The person who should take off their clothes.

Returns

TakeOffClothesAction

The constructed action, or null if the person is already naked.

Update(GameTime, TimeSpan, float)

This method is called every update frame if this action is currently active. By default, only the ElapsedTime is modified in this method and ActionUpdate(Action, GameTime, TimeSpan, float, bool) is called.

public override void Update(GameTime time, TimeSpan passedInGame, float speedMultiplier)

Parameters

time GameTime

The current game time

passedInGame TimeSpan

The amount of time that has passed, in game time

speedMultiplier float

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