Files
53bd0569eafee46771fcfcf28b507ede15896e8d
35 lines
809 B
C#
35 lines
809 B
C#
using Content.Server.Maps;
|
|||
using Content.Shared.GridPreloader.Prototypes;
|
|||
using Content.Shared.Storage;
|
|||
using Content.Shared.Whitelist;
|
|||
using Robust.Shared.Map;
|
|||
using Robust.Shared.Prototypes;
|
|||
using Robust.Shared.Utility;
|
|||
|
|||
namespace Content.Server.GameTicking.Rules.Components;
|
|||
|
|||
/// <summary>
|
|||
/// This is used for a game rule that loads a map when activated.
|
|||
/// </summary>
|
|||
[RegisterComponent]
|
|||
public sealed partial class LoadMapRuleComponent : Component
|
|||
{
|
|||
[DataField]
|
|||
public MapId? Map;
|
|||
|
|||
[DataField]
|
|||
public ProtoId<GameMapPrototype>? GameMap;
|
|||
|
|||
[DataField]
|
|||
public ResPath? MapPath;
|
|||
|
|||
[DataField]
|
|||
public ProtoId<PreloadedGridPrototype>? PreloadedGrid;
|
|||
|
|||
[DataField]
|
|||
public List<EntityUid> MapGrids = new();
|
|||
|
|||
[DataField]
|
|||
public EntityWhitelist? SpawnerWhitelist;
|
|||
}
|