Barotrauma Client Doc
|
Public Member Functions | |
LevelObject (LevelObjectPrefab prefab, Vector3 position, float scale, float rotation=0.0f) | |
AttackResult | AddDamage (Character attacker, Vector2 worldPosition, Attack attack, Vector2 impulseDirection, float deltaTime, bool playSound=true) |
void | AddDamage (float damage, float deltaTime, Entity attacker, bool isNetworkEvent=false) |
Vector2 | LocalToWorld (Vector2 localPosition, float swingState=0.0f) |
void | Remove () |
override string | ToString () |
void | ServerWrite (IWriteMessage msg, Client c) |
void | Update (float deltaTime) |
void | ClientRead (IReadMessage msg) |
Public Attributes | |
readonly LevelObjectPrefab | Prefab |
Vector3 | Position |
float | NetworkUpdateTimer |
float | Scale |
float | Rotation |
LevelObjectPrefab | ActivePrefab |
Level.Cave | ParentCave |
float | SwingTimer |
float | ScaleOscillateTimer |
float | CurrentSwingAmount |
Vector2 | CurrentScaleOscillation |
float | CurrentRotation |
Protected Attributes | |
bool | tookDamage |
Definition at line 11 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
Barotrauma.LevelObject.LevelObject | ( | LevelObjectPrefab | prefab, |
Vector3 | position, | ||
float | scale, | ||
float | rotation = 0.0f |
||
) |
Definition at line 88 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
AttackResult Barotrauma.LevelObject.AddDamage | ( | Character | attacker, |
Vector2 | worldPosition, | ||
Attack | attack, | ||
Vector2 | impulseDirection, | ||
float | deltaTime, | ||
bool | playSound = true |
||
) |
Implements Barotrauma.IDamageable.
Definition at line 163 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
void Barotrauma.LevelObject.AddDamage | ( | float | damage, |
float | deltaTime, | ||
Entity | attacker, | ||
bool | isNetworkEvent = false |
||
) |
Definition at line 177 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
void Barotrauma.LevelObject.ClientRead | ( | IReadMessage | msg | ) |
Definition at line 302 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
Vector2 Barotrauma.LevelObject.LocalToWorld | ( | Vector2 | localPosition, |
float | swingState = 0.0f |
||
) |
Definition at line 210 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
void Barotrauma.LevelObject.Remove | ( | ) |
Definition at line 228 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
void Barotrauma.LevelObject.ServerWrite | ( | IWriteMessage | msg, |
Client | c | ||
) |
Definition at line 240 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
override string Barotrauma.LevelObject.ToString | ( | ) |
Definition at line 235 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
void Barotrauma.LevelObject.Update | ( | float | deltaTime | ) |
Definition at line 170 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
LevelObjectPrefab Barotrauma.LevelObject.ActivePrefab |
Definition at line 26 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.CurrentRotation |
Definition at line 23 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
Vector2 Barotrauma.LevelObject.CurrentScaleOscillation |
Definition at line 21 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.CurrentSwingAmount |
Definition at line 20 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.NetworkUpdateTimer |
Definition at line 16 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
Level.Cave Barotrauma.LevelObject.ParentCave |
Definition at line 86 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
Vector3 Barotrauma.LevelObject.Position |
Definition at line 14 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
readonly LevelObjectPrefab Barotrauma.LevelObject.Prefab |
Definition at line 13 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.Rotation |
Definition at line 20 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.Scale |
Definition at line 18 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.ScaleOscillateTimer |
Definition at line 18 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
float Barotrauma.LevelObject.SwingTimer |
Definition at line 17 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
protected |
Definition at line 24 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 89 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 27 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 71 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 59 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 33 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 38 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 82 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
getset |
Definition at line 40 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 54 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 44 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 49 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 28 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 84 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 78 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 83 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 60 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 55 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 65 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 65 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 80 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 34 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 77 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObject.cs.
|
get |
Definition at line 76 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObject.cs.