Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.Event Class Reference
Inheritance diagram for Barotrauma.Event:
Barotrauma.ArtifactEvent Barotrauma.MalfunctionEvent Barotrauma.MonsterEvent

Public Member Functions

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

Public Attributes

readonly int RandomSeed
 
Func< Level.InterestingPosition, bool > SpawnPosFilter
 

Protected Member Functions

virtual void InitEventSpecific (EventSet parentSet=null)
 

Protected Attributes

bool isFinished
 
readonly EventPrefab prefab
 

Properties

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

Events

Action Finished
 

Constructor & Destructor Documentation

◆ Event()

Barotrauma.Event.Event ( EventPrefab prefab,
int seed )

Member Function Documentation

◆ Finish()

virtual void Barotrauma.Event.Finish ( )
virtual

◆ GetDebugInfo()

virtual string Barotrauma.Event.GetDebugInfo ( )
virtual

◆ GetFilesToPreload()

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

Reimplemented in Barotrauma.MonsterEvent.

◆ Init()

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

◆ InitEventSpecific()

virtual void Barotrauma.Event.InitEventSpecific ( EventSet parentSet = null)
protectedvirtual

◆ LevelMeetsRequirements()

virtual bool Barotrauma.Event.LevelMeetsRequirements ( )
virtual

◆ ToString()

override string Barotrauma.Event.ToString ( )

◆ Update()

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

Member Data Documentation

◆ isFinished

bool Barotrauma.Event.isFinished
protected

◆ prefab

readonly EventPrefab Barotrauma.Event.prefab
protected

◆ RandomSeed

readonly int Barotrauma.Event.RandomSeed

◆ SpawnPosFilter

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

Property Documentation

◆ DebugDrawPos

virtual Vector2 Barotrauma.Event.DebugDrawPos
get

◆ Initialized

bool Barotrauma.Event.Initialized
get

◆ IsFinished

bool Barotrauma.Event.IsFinished
get

◆ ParentSet

EventSet Barotrauma.Event.ParentSet
get

◆ Prefab

EventPrefab Barotrauma.Event.Prefab
get

Event Documentation

◆ Finished

Action Barotrauma.Event.Finished

The documentation for this class was generated from the following file: