Barotrauma Client Doc
|
Public Types | |
enum class | TriggererType { None = 0 , Human = 1 , Creature = 2 , Character = Human | Creature , Submarine = 4 , Item = 8 , OtherTrigger = 16 } |
enum class | TriggerForceMode { Force , Acceleration , Impulse , LimitVelocity } |
Public Member Functions | |
LevelTrigger (ContentXElement element, Vector2 position, float rotation, float scale=1.0f, string parentDebugName="") | |
void | OtherTriggered (LevelTrigger otherTrigger, Entity triggerer) |
Another trigger was triggered, check if this one should react to it More... | |
void | Update (float deltaTime) |
Vector2 | GetWaterFlowVelocity (Vector2 viewPosition) |
Vector2 | GetWaterFlowVelocity () |
void | ServerWrite (IWriteMessage msg, Client c) |
void | ClientRead (IReadMessage msg) |
Static Public Member Functions | |
static Category | GetCollisionCategories (TriggererType triggeredBy) |
static void | LoadStatusEffect (List< StatusEffect > statusEffects, ContentXElement element, string parentDebugName) |
static void | LoadAttack (ContentXElement element, string parentDebugName, bool triggerOnce, List< Attack > attacks) |
static bool | IsTriggeredByEntity (Entity entity, TriggererType triggeredBy, bool mustBeOutside=false,(bool mustBe, Submarine sub) mustBeOnSpecificSub=default) |
static bool | CheckContactsForOtherFixtures (PhysicsBody triggerBody, Fixture otherFixture, Entity separatingEntity) |
static bool | CheckContactsForEntity (PhysicsBody triggerBody, Entity targetEntity) |
Are there any active contacts between the physics body and the target entity More... | |
static Entity | GetEntity (Fixture fixture) |
static void | RemoveInActiveTriggerers (PhysicsBody physicsBody, HashSet< Entity > triggerers) |
static void | ApplyStatusEffects (List< StatusEffect > statusEffects, Vector2 worldPosition, Entity triggerer, float deltaTime, List< ISerializableEntity > targets) |
static void | ApplyAttacks (List< Attack > attacks, IDamageable damageable, Vector2 worldPosition, float deltaTime) |
Applies attacks to a damageable. More... | |
static void | ApplyAttacks (List< Attack > attacks, Vector2 worldPosition, float deltaTime) |
Applies attacks to structures. More... | |
static float | GetDistanceFactor (PhysicsBody triggererBody, PhysicsBody triggerBody, float colliderRadius) |
Public Attributes | |
Action< LevelTrigger, Entity > | OnTriggered |
LevelTrigger | ParentTrigger |
Properties | |
IEnumerable< StatusEffect > | StatusEffects [get] |
Dictionary< Entity, Vector2 > | TriggererPosition [get] |
Vector2? | WorldPosition [get, set] |
float? | Rotation [get, set] |
PhysicsBody | PhysicsBody [get] |
float | TriggerOthersDistance [get] |
IEnumerable< Entity > | Triggerers [get] |
bool | IsTriggered [get] |
Vector2 | Force [get] |
bool | ForceFalloff [get] |
does the force diminish by distance More... | |
float | ForceFluctuationInterval [get] |
float | ForceFluctuationStrength [get] |
float | GlobalForceDecreaseInterval [get] |
TriggerForceMode | ForceMode [get] |
float | ForceVelocityLimit [get] |
Stop applying forces to objects if they're moving faster than this More... | |
float | ColliderRadius [get] |
bool | UseNetworkSyncing [get] |
bool | NeedsNetworkSyncing [get, set] |
Identifier | InfectIdentifier [get, set] |
float | InfectionChance [get, set] |
Definition at line 13 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
strong |
Enumerator | |
---|---|
None | |
Human | |
Creature | |
Character | |
Submarine | |
Item | |
OtherTrigger |
Definition at line 16 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
strong |
Enumerator | |
---|---|
Force | |
Acceleration | |
Impulse | |
LimitVelocity |
Definition at line 27 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
Barotrauma.LevelTrigger.LevelTrigger | ( | ContentXElement | element, |
Vector2 | position, | ||
float | rotation, | ||
float | scale = 1.0f , |
||
string | parentDebugName = "" |
||
) |
Definition at line 202 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Applies attacks to a damageable.
Definition at line 687 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Applies attacks to structures.
Definition at line 698 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 645 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Are there any active contacts between the physics body and the target entity
Definition at line 439 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 408 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
void Barotrauma.LevelTrigger.ClientRead | ( | IReadMessage | msg | ) |
Definition at line 7 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 301 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 754 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 462 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
Vector2 Barotrauma.LevelTrigger.GetWaterFlowVelocity | ( | ) |
Definition at line 771 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
Vector2 Barotrauma.LevelTrigger.GetWaterFlowVelocity | ( | Vector2 | viewPosition | ) |
Definition at line 759 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 357 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 325 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 320 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
void Barotrauma.LevelTrigger.OtherTriggered | ( | LevelTrigger | otherTrigger, |
Entity | triggerer | ||
) |
Another trigger was triggered, check if this one should react to it
Definition at line 474 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
static |
Definition at line 623 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
void Barotrauma.LevelTrigger.ServerWrite | ( | IWriteMessage | msg, |
Client | c | ||
) |
Definition at line 787 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
void Barotrauma.LevelTrigger.Update | ( | float | deltaTime | ) |
Definition at line 506 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
Action<LevelTrigger, Entity> Barotrauma.LevelTrigger.OnTriggered |
Definition at line 35 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
LevelTrigger Barotrauma.LevelTrigger.ParentTrigger |
Definition at line 74 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 168 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 122 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
does the force diminish by distance
Definition at line 131 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 137 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 142 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 154 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Stop applying forces to objects if they're moving faster than this
Definition at line 162 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 147 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
getset |
Definition at line 187 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
getset |
Definition at line 193 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 113 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
getset |
Definition at line 181 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 104 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
getset |
Definition at line 93 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 41 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 76 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 108 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 106 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
get |
Definition at line 175 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.
|
getset |
Definition at line 83 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs.