|
Barotrauma Server Doc
|
Public Types | |
| enum class | State { Incomplete , Completed , Failed } |
Public Member Functions | |
| override string | ToString () |
| TraitorEvent (TraitorEventPrefab prefab) | |
| override void | Init (EventSet? parentSet=null) |
| override LocalizedString | ReplaceVariablesInEventText (LocalizedString str) |
| void | SetTraitor (Client traitor) |
| void | SetSecondaryTraitors (IEnumerable< Client > traitors) |
Public Member Functions inherited from Barotrauma.ScriptedEvent | |
| sealed record | TargetPredicate (TargetPredicate.EntityType Type, Predicate< Entity > Predicate) |
| override string | ToString () |
| ScriptedEvent (EventPrefab prefab) | |
| override string | GetDebugInfo () |
| virtual string | GetTextForReplacementElement (string tag) |
| 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 | |
| Action? | OnStateChanged |
Public Attributes inherited from Barotrauma.ScriptedEvent | |
| readonly OnRoundEndAction | OnRoundEndAction |
| readonly bool | RequireBeaconStation |
Public Attributes inherited from Barotrauma.Event | |
| int | RandomSeed |
| Func< Level.InterestingPosition, bool > | SpawnPosFilter |
Properties | |
| new TraitorEventPrefab | Prefab [get] |
| State? | CurrentState [get, set] |
| Client? | Traitor [get] |
| IEnumerable< Client > | SecondaryTraitors [get] |
| override IEnumerable< Identifier > | NonActionChildElementNames [get] |
Properties inherited from Barotrauma.ScriptedEvent | |
| 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 9 of file TraitorEvent.cs.
|
strong |
| Enumerator | |
|---|---|
| Incomplete | |
| Completed | |
| Failed | |
Definition at line 11 of file TraitorEvent.cs.
| Barotrauma.TraitorEvent.TraitorEvent | ( | TraitorEventPrefab | prefab | ) |
Definition at line 60 of file TraitorEvent.cs.
| override void Barotrauma.TraitorEvent.Init | ( | EventSet? | parentSet = null | ) |
Definition at line 66 of file TraitorEvent.cs.
|
virtual |
Reimplemented from Barotrauma.ScriptedEvent.
Definition at line 75 of file TraitorEvent.cs.
| void Barotrauma.TraitorEvent.SetSecondaryTraitors | ( | IEnumerable< Client > | traitors | ) |
Definition at line 103 of file TraitorEvent.cs.
| void Barotrauma.TraitorEvent.SetTraitor | ( | Client | traitor | ) |
Definition at line 89 of file TraitorEvent.cs.
| override string Barotrauma.TraitorEvent.ToString | ( | ) |
Definition at line 46 of file TraitorEvent.cs.
| Action? Barotrauma.TraitorEvent.OnStateChanged |
Definition at line 18 of file TraitorEvent.cs.
|
getset |
Definition at line 27 of file TraitorEvent.cs.
|
getprotected |
Definition at line 58 of file TraitorEvent.cs.
|
get |
Definition at line 22 of file TraitorEvent.cs.
|
get |
Definition at line 44 of file TraitorEvent.cs.
|
get |
Definition at line 40 of file TraitorEvent.cs.