Add priorities to items slots (#8748)

This commit is contained in:
Leon Friedrich
2022-06-12 02:22:19 +12:00
committed by GitHub
parent 863a92eb6c
commit 538d93d19d
3 changed files with 15 additions and 5 deletions

View File

@@ -198,5 +198,11 @@ namespace Content.Shared.Containers.ItemSlots
// Convenience properties
public bool HasItem => ContainerSlot?.ContainedEntity != null;
public EntityUid? Item => ContainerSlot?.ContainedEntity;
/// <summary>
/// Priority for use with the eject & insert verbs for this slot.
/// </summary>
[DataField("priority")]
public int Priority = 0;
}
}