Key distribution system (#625)
* data restruct * yay * Update arenas.yml * fixes * auto labeling * shuffle
This commit is contained in:
@@ -15,5 +15,5 @@ public sealed partial class CP14KeyComponent : Component
|
||||
/// If not null, automatically generates a key for the specified category on initialization. This ensures that the lock will be opened with a key of the same category.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public ProtoId<CP14LockCategoryPrototype>? AutoGenerateShape = null;
|
||||
public ProtoId<CP14LockTypePrototype>? AutoGenerateShape = null;
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@ namespace Content.Shared._CP14.LockKey.Components;
|
||||
/// <summary>
|
||||
/// A component of a lock that stores its keyhole shape, complexity, and current state.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, AutoGenerateComponentState]
|
||||
public sealed partial class CP14LockComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
[DataField, AutoNetworkedField]
|
||||
public List<int>? LockShape = null;
|
||||
|
||||
[DataField]
|
||||
@@ -30,5 +30,5 @@ public sealed partial class CP14LockComponent : Component
|
||||
/// If not null, automatically generates a lock for the specified category on initialization. This ensures that the lock will be opened with a key of the same category.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public ProtoId<CP14LockCategoryPrototype>? AutoGenerateShape = null;
|
||||
public ProtoId<CP14LockTypePrototype>? AutoGenerateShape = null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared._CP14.LockKey.Components;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class CP14StationKeyDistributionComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public List<ProtoId<CP14LockTypePrototype>> Keys = new();
|
||||
}
|
||||
Reference in New Issue
Block a user