Barotrauma Client Doc
Barotrauma.EventAction Class Referenceabstract
Inheritance diagram for Barotrauma.EventAction:
Barotrauma.AfflictionAction Barotrauma.BinaryOptionAction Barotrauma.ClearTagAction Barotrauma.CombatAction Barotrauma.ConversationAction Barotrauma.ConversationAction Barotrauma.EventLogAction Barotrauma.EventObjectiveAction Barotrauma.FireAction Barotrauma.GiveExpAction Barotrauma.GiveSkillExpAction Barotrauma.GoTo Barotrauma.GodModeAction Barotrauma.Label Barotrauma.MessageBoxAction Barotrauma.MissionAction Barotrauma.MissionStateAction Barotrauma.ModifyLocationAction Barotrauma.MoneyAction Barotrauma.NPCChangeTeamAction Barotrauma.NPCFollowAction Barotrauma.NPCOperateItemAction Barotrauma.NPCWaitAction Barotrauma.OnRoundEndAction Barotrauma.RemoveItemAction Barotrauma.ReputationAction Barotrauma.SetDataAction Barotrauma.SetPriceMultiplierAction Barotrauma.SetTraitorEventStateAction Barotrauma.SpawnAction Barotrauma.StatusEffectAction Barotrauma.TagAction Barotrauma.TriggerAction Barotrauma.TriggerEventAction Barotrauma.TutorialCompleteAction Barotrauma.UnlockPathAction Barotrauma.WaitAction Barotrauma.WaitForItemFabricatedAction Barotrauma.WaitForItemUsedAction

Classes

class  SubactionGroup
 

Public Member Functions

 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
abstract bool IsFinished (ref string goToLabel)
 Has the action finished. More...
 
virtual bool SetGoToTarget (string goTo)
 
abstract void Reset ()
 
virtual bool CanBeFinished ()
 
virtual IEnumerable< EventActionGetSubActions ()
 
virtual void Update (float deltaTime)
 
virtual string ToDebugString ()
 Rich test to display in debugdraw More...
 

Static Public Member Functions

static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 

Public Attributes

readonly ScriptedEvent ParentEvent
 

Protected Member Functions

void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Detailed Description

Definition at line 8 of file EventAction.cs.

Constructor & Destructor Documentation

◆ EventAction()

Barotrauma.EventAction.EventAction ( ScriptedEvent  parentEvent,
ContentXElement  element 
)

Definition at line 104 of file EventAction.cs.

Member Function Documentation

◆ ApplyTagsToHulls()

void Barotrauma.EventAction.ApplyTagsToHulls ( Entity  entity,
Identifier  hullTag,
Identifier  linkedHullTag 
)
protected

Definition at line 177 of file EventAction.cs.

◆ CanBeFinished()

virtual bool Barotrauma.EventAction.CanBeFinished ( )
virtual

Definition at line 124 of file EventAction.cs.

◆ GetSubActions()

virtual IEnumerable<EventAction> Barotrauma.EventAction.GetSubActions ( )
virtual

Reimplemented in Barotrauma.ConversationAction, and Barotrauma.BinaryOptionAction.

Definition at line 129 of file EventAction.cs.

◆ Instantiate()

static EventAction Barotrauma.EventAction.Instantiate ( ScriptedEvent  scriptedEvent,
ContentXElement  element 
)
static

Definition at line 136 of file EventAction.cs.

◆ IsFinished()

◆ Reset()

◆ SetGoToTarget()

virtual bool Barotrauma.EventAction.SetGoToTarget ( string  goTo)
virtual

◆ ToDebugString()

virtual string Barotrauma.EventAction.ToDebugString ( )
virtual

Rich test to display in debugdraw

public override string ToDebugString()
{
return $"{ToolBox.GetDebugSymbol(isFinished)} SomeAction -> "(someInfo: {info.ColorizeObject()})";
}
virtual string ToDebugString()
Rich test to display in debugdraw
Definition: EventAction.cs:213
Returns

Reimplemented in Barotrauma.WaitForItemUsedAction, Barotrauma.WaitForItemFabricatedAction, Barotrauma.WaitAction, Barotrauma.UnlockPathAction, Barotrauma.TriggerEventAction, Barotrauma.TriggerAction, Barotrauma.TagAction, Barotrauma.StatusEffectAction, Barotrauma.SpawnAction, Barotrauma.SkillCheckAction, Barotrauma.SetTraitorEventStateAction, Barotrauma.SetPriceMultiplierAction, Barotrauma.SetDataAction, Barotrauma.RNGAction, Barotrauma.ReputationAction, Barotrauma.OnRoundEndAction, Barotrauma.NPCWaitAction, Barotrauma.NPCOperateItemAction, Barotrauma.NPCFollowAction, Barotrauma.NPCChangeTeamAction, Barotrauma.MoneyAction, Barotrauma.ModifyLocationAction, Barotrauma.MissionStateAction, Barotrauma.MissionAction, Barotrauma.MessageBoxAction, Barotrauma.Label, Barotrauma.GoTo, Barotrauma.GodModeAction, Barotrauma.GiveSkillExpAction, Barotrauma.GiveExpAction, Barotrauma.FireAction, Barotrauma.EventLogAction, Barotrauma.CountTargetsAction, Barotrauma.ConversationAction, Barotrauma.CombatAction, Barotrauma.ClearTagAction, Barotrauma.CheckVisibilityAction, Barotrauma.CheckTraitorVoteAction, Barotrauma.CheckTraitorEventStateAction, Barotrauma.CheckReputationAction, Barotrauma.CheckMoneyAction, Barotrauma.CheckItemAction, Barotrauma.CheckDataAction, and Barotrauma.AfflictionAction.

Definition at line 213 of file EventAction.cs.

◆ Update()

Member Data Documentation

◆ ParentEvent

readonly ScriptedEvent Barotrauma.EventAction.ParentEvent

Definition at line 102 of file EventAction.cs.