Key distribution system (#625)

* data restruct

* yay

* Update arenas.yml

* fixes

* auto labeling

* shuffle
This commit is contained in:
Ed
2024-12-03 12:34:07 +03:00
committed by GitHub
parent 7e6e4709c4
commit f6630e1ec9
40 changed files with 1262 additions and 724 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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();
}