Class SpaceNinjaSystem
Main ninja system that handles ninja setup, provides helper methods for the rest of the code to use.
Inheritance
System.Object
SpaceNinjaSystem
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
|
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
Returns
|
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
|
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 |
|