crayons deleted when used up (#7282)

This commit is contained in:
actually-reb
2022-03-27 01:09:48 -07:00
committed by GitHub
parent 4a6dfabcae
commit 85231bb9d6
3 changed files with 19 additions and 1 deletions

View File

@@ -25,6 +25,10 @@ namespace Content.Server.Crayon
[DataField("capacity")]
public int Capacity { get; set; } = 30;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("deleteEmpty")]
public bool DeleteEmpty = true;
[ViewVariables] public BoundUserInterface? UserInterface => Owner.GetUIOrNull(CrayonUiKey.Key);
void ISerializationHooks.AfterDeserialization()