Table of Contents

Class SocialAction.StartPartnerAction

Namespace
TinyLife.Actions
Assembly
Tiny Life.dll

An action is something that a Person does. An action is always derived from an underlying ActionType that contains various action settings. Actions can be queued up for a person (ActionQueue) or currently active (CurrentActions). To create a more complex action, it is best to extend MultiAction. You can find a multitude of action-related events in Person, like OnActionsCompleted.

protected class SocialAction.StartPartnerAction : Action, IGenericDataHolder
Inheritance
JsonTypeSafeGenericDataHolder
SocialAction.StartPartnerAction
Implements
IGenericDataHolder
Inherited Members
JsonTypeSafeGenericDataHolder.GetDataKeys()
Extension Methods

Constructors

StartPartnerAction(ActionInfo)

Creates a new typeless action with the given action information.

public StartPartnerAction(ActionInfo info)

Parameters

info ActionInfo

The information for this action.

Methods

Initialize()

This method is called when the action is first started by a Person. Note that it is not called when the action gets added to the ActionQueue, but when it is moved to CurrentActions.

public override void Initialize()

IsCompleted()

This method is called every update frame by a Person if this action is currently active to check if it should be stopped. If this returns a result other than Completed, OnCompleted(CompletionType) will be called and the action is stopped. By default, only ForceResult modifies the completion type, otherwise Active is returned.

public override CompletionType IsCompleted()

Returns

CompletionType

The current completion type of this action