2019-03-17 15:52:27 +01:00
|
|
|
using Content.Shared.GameObjects.Components.Markers;
|
2019-04-15 21:11:38 -06:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
using Robust.Shared.ViewVariables;
|
2019-03-17 15:52:27 +01:00
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.Components.Markers
|
|
|
|
|
{
|
2019-07-31 15:02:36 +02:00
|
|
|
[RegisterComponent]
|
|
|
|
|
[ComponentReference(typeof(SharedSpawnPointComponent))]
|
2019-03-17 15:52:27 +01:00
|
|
|
public sealed class SpawnPointComponent : SharedSpawnPointComponent
|
|
|
|
|
{
|
|
|
|
|
private SpawnPointType _spawnType;
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public SpawnPointType SpawnType => _spawnType;
|
|
|
|
|
|
|
|
|
|
public override void ExposeData(ObjectSerializer serializer)
|
|
|
|
|
{
|
|
|
|
|
base.ExposeData(serializer);
|
|
|
|
|
|
|
|
|
|
serializer.DataField(ref _spawnType, "spawn_type", SpawnPointType.Unset);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum SpawnPointType
|
|
|
|
|
{
|
|
|
|
|
Unset = 0,
|
|
|
|
|
LateJoin,
|
|
|
|
|
}
|
|
|
|
|
}
|