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

Public Member Functions

 RNGAction (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

float Chance [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 RNGAction.cs.

Constructor & Destructor Documentation

◆ RNGAction()

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

Definition at line 12 of file RNGAction.cs.

Member Function Documentation

◆ DetermineSuccess()

override? bool Barotrauma.RNGAction.DetermineSuccess ( )
protectedvirtual

Implements Barotrauma.BinaryOptionAction.

Definition at line 28 of file RNGAction.cs.

◆ ToDebugString()

override string Barotrauma.RNGAction.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
Definition: RNGAction.cs:34
Returns

Reimplemented from Barotrauma.EventAction.

Definition at line 34 of file RNGAction.cs.

Property Documentation

◆ Chance

float Barotrauma.RNGAction.Chance
getset

Definition at line 10 of file RNGAction.cs.