* new Dev map * добавлена генерация узора ключей раундстартом * каменная стена подгон KREKSa фиксы * add verbs to lock comp * more Loc work * some popups, logic to lock and unlock locks * return old Dev * ability to add locks into doors * check to locked lock, to insert or remove locks * doors examine * key can uses directly to door * really lockable! * lockable crates! * Bruh... Really big update * Key sprites, long wall template * KeyRingComponent * lock entity start * lockpicking! * Shiny 1 * Update keys.yml * Отображение только для держащего в руке * Final --------- Co-authored-by: Tornado Tech <54727692+Tornado-Technology@users.noreply.github.com>
20 lines
625 B
C#
20 lines
625 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.CrystallPunk.LockKey;
|
|
|
|
/// <summary>
|
|
/// a key component that can be used to unlock and lock locks from CPLockComponent
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class CPKeyComponent : Component
|
|
{
|
|
[DataField]
|
|
public List<int>? LockShape = null;
|
|
|
|
/// <summary>
|
|
/// 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<CPLockCategoryPrototype>? AutoGenerateShape = null;
|
|
}
|