Barotrauma Client Doc
Barotrauma.ReputationAction Class Reference
Inheritance diagram for Barotrauma.ReputationAction:
Barotrauma.EventAction

Public Types

enum class  ReputationType { None , Location , Faction }
 

Public Member Functions

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

Properties

float Increase [get, set]
 
Identifier Identifier [get, set]
 
ReputationType TargetType [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.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Detailed Description

Definition at line 9 of file ReputationAction.cs.

Member Enumeration Documentation

◆ ReputationType

Enumerator
None 
Location 
Faction 

Definition at line 11 of file ReputationAction.cs.

Constructor & Destructor Documentation

◆ ReputationAction()

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

Definition at line 18 of file ReputationAction.cs.

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.ReputationAction.IsFinished ( ref string  goToLabel)
virtual

Has the action finished.

Parameters
goToLabelIf null or empty, the event moves to the next action. Otherwise it moves to the specified label.
Returns

Implements Barotrauma.EventAction.

Definition at line 31 of file ReputationAction.cs.

◆ Reset()

override void Barotrauma.ReputationAction.Reset ( )
virtual

Implements Barotrauma.EventAction.

Definition at line 35 of file ReputationAction.cs.

◆ ToDebugString()

override string Barotrauma.ReputationAction.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 80 of file ReputationAction.cs.

◆ Update()

override void Barotrauma.ReputationAction.Update ( float  deltaTime)
virtual

Reimplemented from Barotrauma.EventAction.

Definition at line 40 of file ReputationAction.cs.

Property Documentation

◆ Identifier

Identifier Barotrauma.ReputationAction.Identifier
getset

Definition at line 24 of file ReputationAction.cs.

◆ Increase

float Barotrauma.ReputationAction.Increase
getset

Definition at line 21 of file ReputationAction.cs.

◆ TargetType

ReputationType Barotrauma.ReputationAction.TargetType
getset

Definition at line 27 of file ReputationAction.cs.