Class NukeopsRuleSystem
Inheritance
System.Object
NukeopsRuleSystem
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
Returns
|
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
|
Improve this Doc
View Source
Started(EntityUid, NukeopsRuleComponent, GameRuleComponent, GameRuleStartedEvent)
Declaration
protected override void Started(EntityUid uid, NukeopsRuleComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args)
Parameters
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
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
Returns
Type |
Description |
System.Boolean |
|