Barotrauma Client Doc
|
Public Member Functions | |
sealed record | TargetPredicate (TargetPredicate.EntityType Type, Predicate< Entity > Predicate) |
override string | ToString () |
ScriptedEvent (EventPrefab prefab) | |
override string | GetDebugInfo () |
virtual string | GetTextForReplacementElement (string tag) |
virtual LocalizedString | ReplaceVariablesInEventText (LocalizedString str) |
List<(int indent, EventAction action)> | GetAllActions () |
Finds all actions in the ScriptedEvent (recursively going through the subactions as well). Returns a list of tuples where the first value is the indentation level (or "how deep in the hierarchy") the action is. More... | |
void | AddTarget (Identifier tag, Entity target) |
void | AddTargetPredicate (Identifier tag, TargetPredicate.EntityType entityType, Predicate< Entity > predicate) |
int | GetInitialTargetCount (Identifier tag) |
IEnumerable< Entity > | GetTargets (Identifier tag) |
void | InheritTags (Entity originalEntity, Entity newEntity) |
void | RemoveTag (Identifier tag) |
override void | Update (float deltaTime) |
void | EntitySpawned (Entity entity) |
override bool | LevelMeetsRequirements () |
override void | Finish () |
Public Member Functions inherited from Barotrauma.Event | |
override string | ToString () |
Event (EventPrefab prefab) | |
virtual IEnumerable< ContentFile > | GetFilesToPreload () |
virtual void | Init (EventSet parentSet=null) |
Public Attributes | |
readonly OnRoundEndAction | OnRoundEndAction |
readonly bool | RequireBeaconStation |
Public Attributes inherited from Barotrauma.Event | |
int | RandomSeed |
Func< Level.InterestingPosition, bool > | SpawnPosFilter |
Properties | |
int | CurrentActionIndex [get] |
List< EventAction > | Actions = new List<EventAction>() [get] |
Dictionary< Identifier, List< Entity > > | Targets = new Dictionary<Identifier, List<Entity>>() [get] |
virtual IEnumerable< Identifier > | NonActionChildElementNames [get] |
Properties inherited from Barotrauma.Event | |
EventPrefab | Prefab [get] |
EventSet | ParentSet [get] |
bool | IsFinished [get] |
virtual Vector2 | DebugDrawPos [get] |
Additional Inherited Members | |
Protected Attributes inherited from Barotrauma.Event | |
bool | isFinished |
readonly EventPrefab | prefab |
Events inherited from Barotrauma.Event | |
Action | Finished |
Definition at line 8 of file ScriptedEvent.cs.
Barotrauma.ScriptedEvent.ScriptedEvent | ( | EventPrefab | prefab | ) |
Definition at line 54 of file ScriptedEvent.cs.
void Barotrauma.ScriptedEvent.AddTarget | ( | Identifier | tag, |
Entity | target | ||
) |
Definition at line 170 of file ScriptedEvent.cs.
void Barotrauma.ScriptedEvent.AddTargetPredicate | ( | Identifier | tag, |
TargetPredicate.EntityType | entityType, | ||
Predicate< Entity > | predicate | ||
) |
Definition at line 208 of file ScriptedEvent.cs.
void Barotrauma.ScriptedEvent.EntitySpawned | ( | Entity | entity | ) |
Definition at line 410 of file ScriptedEvent.cs.
|
virtual |
Reimplemented from Barotrauma.Event.
Definition at line 450 of file ScriptedEvent.cs.
List<(int indent, EventAction action)> Barotrauma.ScriptedEvent.GetAllActions | ( | ) |
Finds all actions in the ScriptedEvent (recursively going through the subactions as well). Returns a list of tuples where the first value is the indentation level (or "how deep in the hierarchy") the action is.
Definition at line 149 of file ScriptedEvent.cs.
|
virtual |
Reimplemented from Barotrauma.Event.
Definition at line 97 of file ScriptedEvent.cs.
int Barotrauma.ScriptedEvent.GetInitialTargetCount | ( | Identifier | tag | ) |
Definition at line 222 of file ScriptedEvent.cs.
IEnumerable<Entity> Barotrauma.ScriptedEvent.GetTargets | ( | Identifier | tag | ) |
Definition at line 231 of file ScriptedEvent.cs.
|
virtual |
Definition at line 116 of file ScriptedEvent.cs.
Definition at line 299 of file ScriptedEvent.cs.
|
virtual |
Reimplemented from Barotrauma.Event.
Definition at line 434 of file ScriptedEvent.cs.
void Barotrauma.ScriptedEvent.RemoveTag | ( | Identifier | tag | ) |
Definition at line 310 of file ScriptedEvent.cs.
|
virtual |
Reimplemented in Barotrauma.TraitorEvent.
Definition at line 140 of file ScriptedEvent.cs.
sealed record Barotrauma.ScriptedEvent.TargetPredicate | ( | TargetPredicate.EntityType | Type, |
Predicate< Entity > | Predicate | ||
) |
Definition at line 10 of file ScriptedEvent.cs.
override string Barotrauma.ScriptedEvent.ToString | ( | ) |
Definition at line 49 of file ScriptedEvent.cs.
|
virtual |
Reimplemented from Barotrauma.Event.
Definition at line 318 of file ScriptedEvent.cs.
readonly OnRoundEndAction Barotrauma.ScriptedEvent.OnRoundEndAction |
Definition at line 38 of file ScriptedEvent.cs.
readonly bool Barotrauma.ScriptedEvent.RequireBeaconStation |
Definition at line 41 of file ScriptedEvent.cs.
|
get |
Definition at line 44 of file ScriptedEvent.cs.
|
get |
Definition at line 43 of file ScriptedEvent.cs.
|
getprotected |
Definition at line 47 of file ScriptedEvent.cs.
|
get |
Definition at line 45 of file ScriptedEvent.cs.