Show / Hide Table of Contents

Class SpaceNinjaSystem

Main ninja system that handles ninja setup, provides helper methods for the rest of the code to use.

Inheritance
System.Object
SharedSpaceNinjaSystem
SpaceNinjaSystem
Namespace: Content.Server.Ninja.Systems
Assembly: Content.Server.dll
Syntax
public sealed class SpaceNinjaSystem : SharedSpaceNinjaSystem

Methods

| Improve this Doc View Source

GetNinjaBattery(EntityUid, out Nullable<EntityUid>, out BatteryComponent)

Get the battery component in a ninja's suit, if it's worn.

Declaration
public bool GetNinjaBattery(EntityUid user, out EntityUid? uid, out BatteryComponent battery)
Parameters
Type Name Description
Robust.Shared.GameObjects.EntityUid user
System.Nullable<Robust.Shared.GameObjects.EntityUid> uid
BatteryComponent battery
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Initialize()

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

NinjaRule(EntityUid, GenericAntagComponent)

Returns a ninja's gamerule config data. If the gamerule was not started then it will be started automatically.

Declaration
public NinjaRuleComponent NinjaRule(EntityUid uid, GenericAntagComponent comp = null)
Parameters
Type Name Description
Robust.Shared.GameObjects.EntityUid uid
GenericAntagComponent comp
Returns
Type Description
NinjaRuleComponent
| Improve this Doc View Source

SetSuitPowerAlert(EntityUid, SpaceNinjaComponent)

Update the alert for the ninja's suit power indicator.

Declaration
public void SetSuitPowerAlert(EntityUid uid, SpaceNinjaComponent comp = null)
Parameters
Type Name Description
Robust.Shared.GameObjects.EntityUid uid
SpaceNinjaComponent comp
| Improve this Doc View Source

TryUseCharge(EntityUid, Single)

Declaration
public override bool TryUseCharge(EntityUid user, float charge)
Parameters
Type Name Description
Robust.Shared.GameObjects.EntityUid user
System.Single charge
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
☀
☾