Barotrauma Client Doc
Barotrauma.Event Class Reference
Inheritance diagram for Barotrauma.Event:
Barotrauma.ArtifactEvent Barotrauma.MalfunctionEvent Barotrauma.MonsterEvent Barotrauma.ScriptedEvent Barotrauma.TraitorEvent

Public Member Functions

override string ToString ()
 
 Event (EventPrefab prefab)
 
virtual IEnumerable< ContentFileGetFilesToPreload ()
 
virtual void Init (EventSet parentSet=null)
 
virtual string GetDebugInfo ()
 
virtual void Update (float deltaTime)
 
virtual void Finish ()
 
virtual bool LevelMeetsRequirements ()
 

Public Attributes

int RandomSeed
 
Func< Level.InterestingPosition, bool > SpawnPosFilter
 

Protected Attributes

bool isFinished
 
readonly EventPrefab prefab
 

Properties

EventPrefab Prefab [get]
 
EventSet ParentSet [get]
 
bool IsFinished [get]
 
virtual Vector2 DebugDrawPos [get]
 

Events

Action Finished
 

Detailed Description

Definition at line 7 of file Event.cs.

Constructor & Destructor Documentation

◆ Event()

Barotrauma.Event.Event ( EventPrefab  prefab)

Definition at line 40 of file Event.cs.

Member Function Documentation

◆ Finish()

virtual void Barotrauma.Event.Finish ( )
virtual

Reimplemented in Barotrauma.ScriptedEvent.

Definition at line 64 of file Event.cs.

◆ GetDebugInfo()

virtual string Barotrauma.Event.GetDebugInfo ( )
virtual

Reimplemented in Barotrauma.ScriptedEvent, Barotrauma.MonsterEvent, and Barotrauma.ArtifactEvent.

Definition at line 55 of file Event.cs.

◆ GetFilesToPreload()

virtual IEnumerable<ContentFile> Barotrauma.Event.GetFilesToPreload ( )
virtual

Reimplemented in Barotrauma.MonsterEvent.

Definition at line 45 of file Event.cs.

◆ Init()

virtual void Barotrauma.Event.Init ( EventSet  parentSet = null)
virtual

Reimplemented in Barotrauma.MonsterEvent, Barotrauma.MalfunctionEvent, and Barotrauma.ArtifactEvent.

Definition at line 50 of file Event.cs.

◆ LevelMeetsRequirements()

virtual bool Barotrauma.Event.LevelMeetsRequirements ( )
virtual

Reimplemented in Barotrauma.ScriptedEvent.

Definition at line 70 of file Event.cs.

◆ ToString()

override string Barotrauma.Event.ToString ( )

Definition at line 27 of file Event.cs.

◆ Update()

virtual void Barotrauma.Event.Update ( float  deltaTime)
virtual

Member Data Documentation

◆ isFinished

bool Barotrauma.Event.isFinished
protected

Definition at line 10 of file Event.cs.

◆ prefab

readonly EventPrefab Barotrauma.Event.prefab
protected

Definition at line 14 of file Event.cs.

◆ RandomSeed

int Barotrauma.Event.RandomSeed

Definition at line 12 of file Event.cs.

◆ SpawnPosFilter

Func<Level.InterestingPosition, bool> Barotrauma.Event.SpawnPosFilter

Definition at line 20 of file Event.cs.

Property Documentation

◆ DebugDrawPos

virtual Vector2 Barotrauma.Event.DebugDrawPos
get

Definition at line 32 of file Event.cs.

◆ IsFinished

bool Barotrauma.Event.IsFinished
get

Definition at line 22 of file Event.cs.

◆ ParentSet

EventSet Barotrauma.Event.ParentSet
get

Definition at line 18 of file Event.cs.

◆ Prefab

EventPrefab Barotrauma.Event.Prefab
get

Definition at line 16 of file Event.cs.

Event Documentation

◆ Finished

Action Barotrauma.Event.Finished

Definition at line 9 of file Event.cs.