Remove string appearance keys (#10114)
This commit is contained in:
@@ -7,8 +7,6 @@ namespace Content.Shared.Foldable;
|
||||
[UsedImplicitly]
|
||||
public abstract class SharedFoldableSystem : EntitySystem
|
||||
{
|
||||
private const string FoldKey = "FoldedState";
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -50,7 +48,7 @@ public abstract class SharedFoldableSystem : EntitySystem
|
||||
Dirty(component);
|
||||
|
||||
if (TryComp(component.Owner, out AppearanceComponent? appearance))
|
||||
appearance.SetData(FoldKey, folded);
|
||||
appearance.SetData(FoldedVisuals.State, folded);
|
||||
}
|
||||
|
||||
private void OnInsertEvent(EntityUid uid, FoldableComponent component, ContainerGettingInsertedAttemptEvent args)
|
||||
@@ -58,4 +56,9 @@ public abstract class SharedFoldableSystem : EntitySystem
|
||||
if (!component.IsFolded)
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
public enum FoldedVisuals : byte
|
||||
{
|
||||
State
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user