ActionType_CanExecuteResult - Ellpeck/TinyLifeExampleMod Wiki

Tiny Life

TinyLife.Actions.ActionType

ActionType.CanExecuteResult Enum

An enumeration that represents whether or not an action can be executed. This is used by CanExecuteDelegate(ActionInfo, bool).

public enum ActionType.CanExecuteResult

Fields

BlockedByEmotionModifier 17
A result that should be returned if a specific EmotionModifier blocks an action

Expired 16
A result that should be returned if the action obejct is considered expired

Hidden 0
A result that causes the action to be hidden from the actions menu (and thus be unstartable)

HoldingItem 2
A result that should be returned when the Person in question is currently holding an item which interferes with the action in some way

NoChair 4
A result that should be returned when a chair is required for the action, but there is none present

NoMatchingObjectAround 14
A result that should be returned if some object that is required for an action is missing, like a sink for cleaning a dish

NoSpace 3
A result that should be returned when the Furniture in question has no space for an item

NotEnoughMoney 5
A result that should be returned when there is not enough money in the Household to execute this action

NotEnoughSkill 6
A result that should be returned if the Person in question does not have a skill level high enough to execute this action

NotYours 8
A result that should be returned if the Person does not own the MapObject that this action is executed on

ObjectBroken 13
A result that should be returned if the BreakableFurniture involved in the action is broken

TooEmbarrassed 10
A result that should be returned if the Person is considered too embarrassed to do something

TooFar 7
A result that should be returned if the Person in question is too far away to execute this action

TooSad 11
A result that should be returned if the Person is considered too sad to do something

TooStunned 19
A result that should be returned if a person is TinyLife.Emotions.EmotionType.Stunned and it prevents an action

TooUncomfortable 9
A result that should be returned if the Person is considered emotionally too uncomfortable to do something

UtilitiesDisabled 15
A result that should be returned if the Household's utilities are disabled due to unpaid bills

Valid 1
A result that causes the action to be executable both by PersonAi and by a player

WaitingRequired 18
A result that should be returned if an action has to be waited for due to a cooldown

WrongRelationshipType 12
A result that should be returned if the Person has the wrong Relationship to a given other person