Barotrauma Client Doc
|
Public Types | |
enum class | NetworkEventType { CONVERSATION , CONVERSATION_SELECTED_OPTION , STATUSEFFECT , MISSION , UNLOCKPATH , EVENTLOG , EVENTOBJECTIVE } |
Public Member Functions | |
void | AddTimeStamp (Event e) |
EventManager () | |
void | StartRound (Level level) |
void | ActivateEvent (Event newEvent) |
void | ClearEvents () |
IEnumerable< ContentFile > | GetFilesToPreload () |
void | PreloadContent (IEnumerable< ContentFile > contentFiles) |
void | TriggerOnEndRoundActions () |
void | EndRound () |
void | RegisterEventHistory (bool registerFinishedOnly=false) |
Registers the exhaustible events in the level as exhausted, and adds the current events to the event history More... | |
void | SkipEventCooldown () |
void | Update (float deltaTime) |
void | EntitySpawned (Entity entity) |
void | Load (XElement element) |
XElement | Save () |
void | DebugDraw (SpriteBatch spriteBatch) |
void | DebugDrawHUD (SpriteBatch spriteBatch, float y) |
void | DrawPinnedEvent (SpriteBatch spriteBatch) |
void | ClientRead (IReadMessage msg) |
Static Public Member Functions | |
static bool | IsSuitable (EventPrefab e, Level level) |
static bool | IsLevelSuitable (EventPrefab e, Level level) |
static ISpatialEntity | GetRefEntity () |
Get the entity that should be used in determining how far the player has progressed in the level. = The submarine or player character that has progressed the furthest. More... | |
Public Attributes | |
float | CumulativeMonsterStrengthMain |
float | CumulativeMonsterStrengthRuins |
float | CumulativeMonsterStrengthWrecks |
float | CumulativeMonsterStrengthCaves |
readonly Queue< Event > | QueuedEvents = new Queue<Event>() |
readonly Queue< Identifier > | QueuedEventsForNextRound = new Queue<Identifier>() |
readonly EventLog | EventLog = new EventLog() |
bool | Enabled = true |
Static Public Attributes | |
readonly record struct NetEventLogEntry(Identifier EventPrefabId, Identifier LogEntryId, string Text)[NetworkSerialize] readonly record struct const NetEventObjective(EventObjectiveAction.SegmentActionType Type, Identifier Identifier, Identifier ObjectiveTag, Identifier TextTag, Identifier ParentObjectiveId, bool CanBeCompleted) float | IntensityUpdateInterval = 5.0f |
Properties | |
float | CurrentIntensity [get] |
float | MusicIntensity [get] |
IEnumerable< Event > | ActiveEvents [get] |
Event? | PinnedEvent [get, set] |
Definition at line 12 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
strong |
Enumerator | |
---|---|
CONVERSATION | |
CONVERSATION_SELECTED_OPTION | |
STATUSEFFECT | |
MISSION | |
UNLOCKPATH | |
EVENTLOG | |
EVENTOBJECTIVE |
Definition at line 14 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
Barotrauma.EventManager.EventManager | ( | ) |
Definition at line 139 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.ActivateEvent | ( | Event | newEvent | ) |
Definition at line 277 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.AddTimeStamp | ( | Event | e | ) |
void Barotrauma.EventManager.ClearEvents | ( | ) |
Definition at line 283 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.ClientRead | ( | IReadMessage | msg | ) |
Definition at line 551 of file BarotraumaClient/ClientSource/Events/EventManager.cs.
void Barotrauma.EventManager.DebugDraw | ( | SpriteBatch | spriteBatch | ) |
Definition at line 29 of file BarotraumaClient/ClientSource/Events/EventManager.cs.
void Barotrauma.EventManager.DebugDrawHUD | ( | SpriteBatch | spriteBatch, |
float | y | ||
) |
Definition at line 42 of file BarotraumaClient/ClientSource/Events/EventManager.cs.
void Barotrauma.EventManager.DrawPinnedEvent | ( | SpriteBatch | spriteBatch | ) |
Definition at line 304 of file BarotraumaClient/ClientSource/Events/EventManager.cs.
void Barotrauma.EventManager.EndRound | ( | ) |
Definition at line 403 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.EntitySpawned | ( | Entity | entity | ) |
Definition at line 910 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
IEnumerable<ContentFile> Barotrauma.EventManager.GetFilesToPreload | ( | ) |
Definition at line 336 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
static |
Get the entity that should be used in determining how far the player has progressed in the level. = The submarine or player character that has progressed the furthest.
Definition at line 1111 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
static |
Definition at line 689 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
static |
Definition at line 684 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.Load | ( | XElement | element | ) |
Definition at line 1217 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.PreloadContent | ( | IEnumerable< ContentFile > | contentFiles | ) |
Definition at line 350 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.RegisterEventHistory | ( | bool | registerFinishedOnly = false | ) |
Registers the exhaustible events in the level as exhausted, and adds the current events to the event history
Definition at line 423 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
XElement Barotrauma.EventManager.Save | ( | ) |
Definition at line 1225 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.SkipEventCooldown | ( | ) |
Definition at line 468 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.StartRound | ( | Level | level | ) |
Definition at line 149 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.TriggerOnEndRoundActions | ( | ) |
Definition at line 395 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
void Barotrauma.EventManager.Update | ( | float | deltaTime | ) |
Definition at line 768 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
float Barotrauma.EventManager.CumulativeMonsterStrengthCaves |
Definition at line 76 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
float Barotrauma.EventManager.CumulativeMonsterStrengthMain |
Definition at line 73 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
float Barotrauma.EventManager.CumulativeMonsterStrengthRuins |
Definition at line 74 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
float Barotrauma.EventManager.CumulativeMonsterStrengthWrecks |
Definition at line 75 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
bool Barotrauma.EventManager.Enabled = true |
Definition at line 144 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
Definition at line 137 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
static |
Definition at line 38 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
Definition at line 118 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
readonly Queue<Identifier> Barotrauma.EventManager.QueuedEventsForNextRound = new Queue<Identifier>() |
Definition at line 120 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
get |
Definition at line 113 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
get |
Definition at line 104 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
get |
Definition at line 108 of file BarotraumaShared/SharedSource/Events/EventManager.cs.
|
getset |
Definition at line 25 of file BarotraumaClient/ClientSource/Events/EventManager.cs.