Fix actions not being usable, ordering, and containers (#19964)

This commit is contained in:
DrSmugleaf
2023-09-09 16:14:17 -07:00
committed by GitHub
parent 7b41f7451c
commit 09bce85f19
21 changed files with 166 additions and 119 deletions

View File

@@ -13,15 +13,17 @@ public sealed partial class ActionsComponent : Component
/// </summary>
[ViewVariables] public readonly Dictionary<EntityUid, ActionMetaData> OldClientActions = new();
[ViewVariables] public readonly HashSet<EntityUid> Actions = new();
public override bool SendOnlyToOwner => true;
}
[Serializable, NetSerializable]
public sealed class ActionsComponentState : ComponentState
{
public readonly List<EntityUid> Actions;
public readonly HashSet<EntityUid> Actions;
public ActionsComponentState(List<EntityUid> actions)
public ActionsComponentState(HashSet<EntityUid> actions)
{
Actions = actions;
}