Barotrauma Client Doc
Barotrauma.CheckVisibilityAction Class Reference
Inheritance diagram for Barotrauma.CheckVisibilityAction:
Barotrauma.BinaryOptionAction Barotrauma.EventAction

Public Member Functions

 CheckVisibilityAction (ScriptedEvent parentEvent, ContentXElement element)
 
override string ToDebugString ()
 Rich test to display in debugdraw More...
 
- Public Member Functions inherited from Barotrauma.BinaryOptionAction
 BinaryOptionAction (ScriptedEvent parentEvent, ContentXElement element)
 
override IEnumerable< EventActionGetSubActions ()
 
override bool IsFinished (ref string goTo)
 Has the action finished. More...
 
override bool SetGoToTarget (string goTo)
 
override void Reset ()
 
override void Update (float deltaTime)
 
- Public Member Functions inherited from Barotrauma.EventAction
 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
virtual bool CanBeFinished ()
 

Protected Member Functions

override? bool DetermineSuccess ()
 
- Protected Member Functions inherited from Barotrauma.BinaryOptionAction
bool DetermineFinished ()
 
bool DetermineFinished (ref string goTo)
 
bool HasBeenDetermined ()
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Properties

Identifier EntityTag [get, set]
 
Identifier ExcludedEntityTag [get, set]
 
Identifier TargetTag [get, set]
 
bool CheckFacing [get, set]
 
float MaxDistance [get, set]
 
Identifier ApplyTagToEntity [get, set]
 
Identifier ApplyTagToTarget [get, set]
 
bool AllowSameEntity [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 
- Public Attributes inherited from Barotrauma.BinaryOptionAction
SubactionGroup Success = null
 
SubactionGroup Failure = null
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Attributes inherited from Barotrauma.BinaryOptionAction
bool? succeeded = null
 

Detailed Description

Definition at line 7 of file CheckVisibilityAction.cs.

Constructor & Destructor Documentation

◆ CheckVisibilityAction()

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

Definition at line 33 of file CheckVisibilityAction.cs.

Member Function Documentation

◆ DetermineSuccess()

override? bool Barotrauma.CheckVisibilityAction.DetermineSuccess ( )
protectedvirtual

Implements Barotrauma.BinaryOptionAction.

Definition at line 37 of file CheckVisibilityAction.cs.

◆ ToDebugString()

override string Barotrauma.CheckVisibilityAction.ToDebugString ( )
virtual

Rich test to display in debugdraw

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

Reimplemented from Barotrauma.EventAction.

Definition at line 68 of file CheckVisibilityAction.cs.

Property Documentation

◆ AllowSameEntity

bool Barotrauma.CheckVisibilityAction.AllowSameEntity
getset

Definition at line 31 of file CheckVisibilityAction.cs.

◆ ApplyTagToEntity

Identifier Barotrauma.CheckVisibilityAction.ApplyTagToEntity
getset

Definition at line 25 of file CheckVisibilityAction.cs.

◆ ApplyTagToTarget

Identifier Barotrauma.CheckVisibilityAction.ApplyTagToTarget
getset

Definition at line 28 of file CheckVisibilityAction.cs.

◆ CheckFacing

bool Barotrauma.CheckVisibilityAction.CheckFacing
getset

Definition at line 19 of file CheckVisibilityAction.cs.

◆ EntityTag

Identifier Barotrauma.CheckVisibilityAction.EntityTag
getset

Definition at line 10 of file CheckVisibilityAction.cs.

◆ ExcludedEntityTag

Identifier Barotrauma.CheckVisibilityAction.ExcludedEntityTag
getset

Definition at line 13 of file CheckVisibilityAction.cs.

◆ MaxDistance

float Barotrauma.CheckVisibilityAction.MaxDistance
getset

Definition at line 22 of file CheckVisibilityAction.cs.

◆ TargetTag

Identifier Barotrauma.CheckVisibilityAction.TargetTag
getset

Definition at line 16 of file CheckVisibilityAction.cs.