2024-04-24 21:31:45 -04:00
|
|
|
using Content.Server.Maps;
|
2024-05-10 14:35:59 +03:00
|
|
|
using Content.Shared.GridPreloader.Prototypes;
|
|
|
|
|
using Content.Shared.Storage;
|
2024-04-24 21:31:45 -04:00
|
|
|
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]
|
2024-05-10 14:35:59 +03:00
|
|
|
public ProtoId<GameMapPrototype>? GameMap;
|
2024-04-24 21:31:45 -04:00
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public ResPath? MapPath;
|
|
|
|
|
|
2024-05-10 14:35:59 +03:00
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<PreloadedGridPrototype>? PreloadedGrid;
|
|
|
|
|
|
2024-04-24 21:31:45 -04:00
|
|
|
[DataField]
|
|
|
|
|
public List<EntityUid> MapGrids = new();
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public EntityWhitelist? SpawnerWhitelist;
|
|
|
|
|
}
|