Class TakeOffClothesAction
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
-
JsonTypeSafeGenericDataHolderTakeOffClothesAction
- 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
typeActionTypeThe type for this action.
infoActionInfoThe 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
personPersonLikeThe 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)