mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
trying to fix the prelobby heisentest we use votes anyway! fuck it, we ball --------- Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> (cherry picked from commit d5d071a6d974a72357830821364dd906fa4d948d)
31 lines
885 B
C#
31 lines
885 B
C#
using Content.Server.GameTicking.Rules;
|
|
using Content.Shared.Whitelist;
|
|
using Robust.Shared.Map;
|
|
|
|
/// <summary>
|
|
/// Stores grids created by another gamerule component.
|
|
/// With <c>AntagSelection</c>, spawners on these grids can be used for its antags.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(RuleGridsSystem))]
|
|
public sealed partial class RuleGridsComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The map that was loaded.
|
|
/// </summary>
|
|
[DataField]
|
|
public MapId? Map;
|
|
|
|
/// <summary>
|
|
/// The grid entities that have been loaded.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<EntityUid> MapGrids = new();
|
|
|
|
/// <summary>
|
|
/// Whitelist for a spawner to be considered for an antag.
|
|
/// All spawners must have <c>SpawnPointComponent</c> regardless to be found.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityWhitelist? SpawnerWhitelist;
|
|
}
|