Show / Hide Table of Contents

Class StaminaSystem

Inheritance
System.Object
StaminaSystem
Namespace: Content.Shared.Damage.Systems
Assembly: Content.Shared.dll
Syntax
public sealed class StaminaSystem : EntitySystem

Methods

| Improve this Doc View Source

GetStaminaDamage(EntityUid, StaminaComponent)

Declaration
public float GetStaminaDamage(EntityUid uid, StaminaComponent component = null)
Parameters
Type Name Description
EntityUid uid
StaminaComponent component
Returns
Type Description
System.Single
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

SetModifier(EntityUid, Single, StaminaComponent, StaminaModifierComponent)

Change the stamina modifier for an entity. If it has StaminaComponent it will also be updated.

Declaration
public void SetModifier(EntityUid uid, float modifier, StaminaComponent stamina = null, StaminaModifierComponent comp = null)
Parameters
Type Name Description
EntityUid uid
System.Single modifier
StaminaComponent stamina
StaminaModifierComponent comp
| Improve this Doc View Source

TakeStaminaDamage(EntityUid, Single, StaminaComponent, Nullable<EntityUid>, Nullable<EntityUid>, Boolean, SoundSpecifier)

Declaration
public void TakeStaminaDamage(EntityUid uid, float value, StaminaComponent component = null, EntityUid? source = null, EntityUid? with = null, bool visual = true, SoundSpecifier sound = null)
Parameters
Type Name Description
EntityUid uid
System.Single value
StaminaComponent component
System.Nullable<EntityUid> source
System.Nullable<EntityUid> with
System.Boolean visual
Robust.Shared.Audio.SoundSpecifier sound
| Improve this Doc View Source

TryTakeStamina(EntityUid, Single, StaminaComponent, Nullable<EntityUid>, Nullable<EntityUid>)

Tries to take stamina damage without raising the entity over the crit threshold.

Declaration
public bool TryTakeStamina(EntityUid uid, float value, StaminaComponent component = null, EntityUid? source = null, EntityUid? with = null)
Parameters
Type Name Description
EntityUid uid
System.Single value
StaminaComponent component
System.Nullable<EntityUid> source
System.Nullable<EntityUid> with
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Update(Single)

Declaration
public override void Update(float frameTime)
Parameters
Type Name Description
System.Single frameTime
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾