Show / Hide Table of Contents

Class SharedSpaceNinjaSystem

Provides shared ninja API, handles being attacked revealing ninja and stops guns from shooting.

Inheritance
System.Object
SharedSpaceNinjaSystem
SpaceNinjaSystem
SpaceNinjaSystem
Namespace: Content.Shared.Ninja.Systems
Assembly: Content.Shared.dll
Syntax
public abstract class SharedSpaceNinjaSystem : EntitySystem

Fields

| Improve this Doc View Source

_popup

Declaration
protected readonly SharedPopupSystem _popup
Field Value
Type Description
SharedPopupSystem
| Improve this Doc View Source

_suit

Declaration
protected readonly SharedNinjaSuitSystem _suit
Field Value
Type Description
SharedNinjaSuitSystem

Methods

| Improve this Doc View Source

AssignGloves(EntityUid, Nullable<EntityUid>, SpaceNinjaComponent)

Set the ninja's worn gloves entity

Declaration
public void AssignGloves(EntityUid uid, EntityUid? gloves, SpaceNinjaComponent comp = null)
Parameters
Type Name Description
EntityUid uid
System.Nullable<EntityUid> gloves
SpaceNinjaComponent comp
| Improve this Doc View Source

AssignSuit(EntityUid, Nullable<EntityUid>, SpaceNinjaComponent)

Set the ninja's worn suit entity

Declaration
public void AssignSuit(EntityUid uid, EntityUid? suit, SpaceNinjaComponent comp = null)
Parameters
Type Name Description
EntityUid uid
System.Nullable<EntityUid> suit
SpaceNinjaComponent comp
| Improve this Doc View Source

BindKatana(EntityUid, Nullable<EntityUid>, SpaceNinjaComponent)

Bind a katana entity to a ninja, letting it be recalled and dash.

Declaration
public void BindKatana(EntityUid uid, EntityUid? katana, SpaceNinjaComponent comp = null)
Parameters
Type Name Description
EntityUid uid
System.Nullable<EntityUid> katana
SpaceNinjaComponent comp
| Improve this Doc View Source

Initialize()

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

TryUseCharge(EntityUid, Single)

Gets the user's battery and tries to use some charge from it, returning true if successful. Serverside only.

Declaration
public virtual bool TryUseCharge(EntityUid user, float charge)
Parameters
Type Name Description
EntityUid user
System.Single charge
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾