|
| 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 separatingFixture, Entity separatingEntity) |
| | Checks whether any fixture of the trigger body is in contact with any fixture belonging to the physics bodies of separatingEntity.
|
| |
| static bool | CheckContactsForEntity (PhysicsBody triggerBody, Entity targetEntity) |
| | Are there any active contacts between the physics body and the target entity.
|
| |
| 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.
|
| |
| static void | ApplyAttacks (List< Attack > attacks, Vector2 worldPosition, float deltaTime) |
| | Applies attacks to structures.
|
| |
| static float | GetDistanceFactor (PhysicsBody triggererBody, PhysicsBody triggerBody, float colliderRadius) |
| |
◆ TriggererType
| Enumerator |
|---|
| None | |
| Human | |
| Creature | |
| Character | |
| Submarine | |
| Item | |
| OtherTrigger | |
◆ TriggerForceMode
| Enumerator |
|---|
| Force | |
| Acceleration | |
| Impulse | |
| LimitVelocity | |
◆ LevelTrigger()
| Barotrauma.LevelTrigger.LevelTrigger |
( |
ContentXElement | element, |
|
|
Vector2 | position, |
|
|
float | rotation, |
|
|
float | scale = 1::0f, |
|
|
string | parentDebugName = "" ) |
◆ ApplyAttacks() [1/2]
| static void Barotrauma.LevelTrigger.ApplyAttacks |
( |
List< Attack > | attacks, |
|
|
IDamageable | damageable, |
|
|
Vector2 | worldPosition, |
|
|
float | deltaTime ) |
|
static |
Applies attacks to a damageable.
◆ ApplyAttacks() [2/2]
| static void Barotrauma.LevelTrigger.ApplyAttacks |
( |
List< Attack > | attacks, |
|
|
Vector2 | worldPosition, |
|
|
float | deltaTime ) |
|
static |
Applies attacks to structures.
◆ ApplyStatusEffects()
◆ CheckContactsForEntity()
| static bool Barotrauma.LevelTrigger.CheckContactsForEntity |
( |
PhysicsBody | triggerBody, |
|
|
Entity | targetEntity ) |
|
static |
Are there any active contacts between the physics body and the target entity.
◆ CheckContactsForOtherFixtures()
| static bool Barotrauma.LevelTrigger.CheckContactsForOtherFixtures |
( |
PhysicsBody | triggerBody, |
|
|
Fixture | separatingFixture, |
|
|
Entity | separatingEntity ) |
|
static |
Checks whether any fixture of the trigger body is in contact with any fixture belonging to the physics bodies of separatingEntity.
- Parameters
-
| triggerBody | Physics body of the trigger |
| separatingFixture | Fixture that got separated from the trigger |
| separatingEntity | Entity that got separated from the trigger |
- Returns
◆ GetCollisionCategories()
| static Category Barotrauma.LevelTrigger.GetCollisionCategories |
( |
TriggererType | triggeredBy | ) |
|
|
static |
◆ GetDistanceFactor()
| static float Barotrauma.LevelTrigger.GetDistanceFactor |
( |
PhysicsBody | triggererBody, |
|
|
PhysicsBody | triggerBody, |
|
|
float | colliderRadius ) |
|
static |
◆ GetEntity()
| static Entity Barotrauma.LevelTrigger.GetEntity |
( |
Fixture | fixture | ) |
|
|
static |
◆ GetWaterFlowVelocity() [1/2]
| Vector2 Barotrauma.LevelTrigger.GetWaterFlowVelocity |
( |
| ) |
|
◆ GetWaterFlowVelocity() [2/2]
| Vector2 Barotrauma.LevelTrigger.GetWaterFlowVelocity |
( |
Vector2 | viewPosition | ) |
|
◆ IsTriggeredByEntity()
| static bool Barotrauma.LevelTrigger.IsTriggeredByEntity |
( |
Entity | entity, |
|
|
TriggererType | triggeredBy, |
|
|
bool | mustBeOutside = false, |
|
|
(bool mustBe, Submarine sub) | mustBeOnSpecificSub = default ) |
|
static |
◆ LoadAttack()
| static void Barotrauma.LevelTrigger.LoadAttack |
( |
ContentXElement | element, |
|
|
string | parentDebugName, |
|
|
bool | triggerOnce, |
|
|
List< Attack > | attacks ) |
|
static |
◆ LoadStatusEffect()
| static void Barotrauma.LevelTrigger.LoadStatusEffect |
( |
List< StatusEffect > | statusEffects, |
|
|
ContentXElement | element, |
|
|
string | parentDebugName ) |
|
static |
◆ OtherTriggered()
| void Barotrauma.LevelTrigger.OtherTriggered |
( |
LevelTrigger | otherTrigger, |
|
|
Entity | triggerer ) |
Another trigger was triggered, check if this one should react to it.
◆ RemoveInActiveTriggerers()
| static void Barotrauma.LevelTrigger.RemoveInActiveTriggerers |
( |
PhysicsBody | physicsBody, |
|
|
HashSet< Entity > | triggerers ) |
|
static |
◆ ServerWrite()
◆ Update()
| void Barotrauma.LevelTrigger.Update |
( |
float | deltaTime | ) |
|
◆ OnTriggered
◆ ParentTrigger
◆ ColliderRadius
| float Barotrauma.LevelTrigger.ColliderRadius |
|
get |
◆ Force
| Vector2 Barotrauma.LevelTrigger.Force |
|
get |
◆ ForceFalloff
| bool Barotrauma.LevelTrigger.ForceFalloff |
|
get |
does the force diminish by distance
◆ ForceFluctuationInterval
| float Barotrauma.LevelTrigger.ForceFluctuationInterval |
|
get |
◆ ForceFluctuationStrength
| float Barotrauma.LevelTrigger.ForceFluctuationStrength |
|
get |
◆ ForceMode
◆ ForceVelocityLimit
| float Barotrauma.LevelTrigger.ForceVelocityLimit |
|
get |
Stop applying forces to objects if they're moving faster than this.
◆ GlobalForceDecreaseInterval
| float Barotrauma.LevelTrigger.GlobalForceDecreaseInterval |
|
get |
◆ InfectIdentifier
| Identifier Barotrauma.LevelTrigger.InfectIdentifier |
|
getset |
◆ InfectionChance
| float Barotrauma.LevelTrigger.InfectionChance |
|
getset |
◆ IsTriggered
| bool Barotrauma.LevelTrigger.IsTriggered |
|
get |
◆ NeedsNetworkSyncing
| bool Barotrauma.LevelTrigger.NeedsNetworkSyncing |
|
getset |
◆ PhysicsBody
◆ Rotation
| float Barotrauma.LevelTrigger.Rotation |
|
getset |
◆ StatusEffects
| IEnumerable<StatusEffect> Barotrauma.LevelTrigger.StatusEffects |
|
get |
◆ TriggererPosition
| Dictionary<Entity, Vector2> Barotrauma.LevelTrigger.TriggererPosition |
|
get |
◆ Triggerers
| IEnumerable<Entity> Barotrauma.LevelTrigger.Triggerers |
|
get |
◆ TriggerOthersDistance
| float Barotrauma.LevelTrigger.TriggerOthersDistance |
|
get |
◆ UseNetworkSyncing
| bool Barotrauma.LevelTrigger.UseNetworkSyncing |
|
get |
◆ WorldPosition
| Vector2 Barotrauma.LevelTrigger.WorldPosition |
|
getset |
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelTrigger.cs