|
Barotrauma Server
|
Sets a campaign metadata value. The metadata can be any arbitrary data you want to save: for example, whether some event has been completed, the number of times something has been done during the campaign, or at what stage of some multi-part event chain the crew is at. More...
Public Types | |
| enum | OperationType { Set , Multiply , Add } |
Public Member Functions | |
| SetDataAction (ScriptedEvent parentEvent, ContentXElement element) | |
| override bool | IsFinished (ref string goTo) |
| override void | Reset () |
| override void | Update (float deltaTime) |
| override string | ToDebugString () |
| Rich test to display in debugdraw. | |
Public Member Functions inherited from Barotrauma.EventAction | |
| EventAction (ScriptedEvent parentEvent, ContentXElement element) | |
| bool | IsFinished (ref string goToLabel) |
| Has the action finished. | |
| virtual bool | SetGoToTarget (string goTo) |
| void | Reset () |
| virtual bool | CanBeFinished () |
| virtual IEnumerable< EventAction > | GetSubActions () |
Static Public Member Functions | |
| static void | PerformOperation (CampaignMetadata metadata, Identifier identifier, object value, OperationType operation) |
| static object | ConvertXMLValue (string value) |
Static Public Member Functions inherited from Barotrauma.EventAction | |
| static EventAction | Instantiate (ScriptedEvent scriptedEvent, ContentXElement element) |
Properties | |
| OperationType | Operation [get, set] |
| string | Value = null! [get, set] |
| Identifier | Identifier [get, set] |
Additional Inherited Members | |
Public Attributes inherited from Barotrauma.EventAction | |
| readonly ScriptedEvent | ParentEvent |
Protected Member Functions inherited from Barotrauma.EventAction | |
| void | ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag) |
| string | GetEventDebugName () |
Sets a campaign metadata value. The metadata can be any arbitrary data you want to save: for example, whether some event has been completed, the number of times something has been done during the campaign, or at what stage of some multi-part event chain the crew is at.
| Barotrauma.SetDataAction.SetDataAction | ( | ScriptedEvent | parentEvent, |
| ContentXElement | element ) |
|
static |
| override bool Barotrauma.SetDataAction.IsFinished | ( | ref string | goTo | ) |
|
static |
| override void Barotrauma.SetDataAction.Reset | ( | ) |
|
virtual |
Rich test to display in debugdraw.
Reimplemented from Barotrauma.EventAction.
|
virtual |
Reimplemented from Barotrauma.EventAction.
|
getset |
|
getset |
|
getset |