Show / Hide Table of Contents

Class NukeopsRuleSystem

Inheritance
System.Object
GameRuleSystem<NukeopsRuleComponent>
NukeopsRuleSystem
Namespace: Content.Server.GameTicking.Rules
Assembly: Content.Server.dll
Syntax
public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>

Fields

| Improve this Doc View Source

NukeopsId

Declaration
public const string NukeopsId = null
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

CheckLoneOpsSpawn()

Loneops can only spawn if there is no nukeops active

Declaration
public bool CheckLoneOpsSpawn()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

DeclareWar(EntityUid, String, String, SoundSpecifier, Nullable<Color>)

Declaration
public void DeclareWar(EntityUid opsUid, string msg, string title, SoundSpecifier announcementSound = null, Color? colorOverride = null)
Parameters
Type Name Description
EntityUid opsUid
System.String msg
System.String title
Robust.Shared.Audio.SoundSpecifier announcementSound
System.Nullable<Color> colorOverride
| Improve this Doc View Source

GetWarCondition(NukeopsRuleComponent, GameRuleComponent)

Returns conditions for war declaration

Declaration
public WarConditionStatus GetWarCondition(NukeopsRuleComponent nukieRule, GameRuleComponent gameRule)
Parameters
Type Name Description
NukeopsRuleComponent nukieRule
GameRuleComponent gameRule
Returns
Type Description
WarConditionStatus
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<Content.Server.GameTicking.Rules.Components.NukeopsRuleComponent>.Initialize()
| Improve this Doc View Source

MakeLoneNukie(EntityUid, MindComponent)

Declaration
public void MakeLoneNukie(EntityUid mindId, MindComponent mind)
Parameters
Type Name Description
EntityUid mindId
MindComponent mind
| Improve this Doc View Source

Started(EntityUid, NukeopsRuleComponent, GameRuleComponent, GameRuleStartedEvent)

Declaration
protected override void Started(EntityUid uid, NukeopsRuleComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args)
Parameters
Type Name Description
EntityUid uid
NukeopsRuleComponent component
GameRuleComponent gameRule
Content.Server.GameTicking.Rules.Components.GameRuleStartedEvent args
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<Content.Server.GameTicking.Rules.Components.NukeopsRuleComponent>.Started(EntityUid, Content.Server.GameTicking.Rules.Components.NukeopsRuleComponent, Content.Server.GameTicking.Rules.Components.GameRuleComponent, Content.Server.GameTicking.Rules.Components.GameRuleStartedEvent)
| Improve this Doc View Source

TryGetRuleFromGrid(EntityUid, out Nullable<(NukeopsRuleComponent, GameRuleComponent)>)

Search rule components by grid uid

Declaration
public bool TryGetRuleFromGrid(EntityUid gridId, out (NukeopsRuleComponent, GameRuleComponent)? comps)
Parameters
Type Name Description
EntityUid gridId
System.Nullable<System.ValueTuple<NukeopsRuleComponent, GameRuleComponent>> comps
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetRuleFromOperative(EntityUid, out Nullable<(NukeopsRuleComponent, GameRuleComponent)>)

Returns true when the player with UID opUid is a nuclear operative. Prevents random people from using the war declarator outside of the game mode.

Declaration
public bool TryGetRuleFromOperative(EntityUid opUid, out (NukeopsRuleComponent, GameRuleComponent)? comps)
Parameters
Type Name Description
EntityUid opUid
System.Nullable<System.ValueTuple<NukeopsRuleComponent, GameRuleComponent>> comps
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾