Fix actions not being usable, ordering, and containers (#19964)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user