More error fixes.
This commit is contained in:
@@ -119,13 +119,6 @@ namespace Content.Shared.Actions.Components
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <seealso cref="TryGetItemActionStates(Robust.Shared.GameObjects.EntityUid,out System.Collections.Generic.IReadOnlyDictionary{Content.Shared.Actions.ItemActionType,Content.Shared.Actions.Components.ActionState}?)"/>
|
||||
public bool TryGetItemActionStates(IEntity item,
|
||||
[NotNullWhen((true))] out IReadOnlyDictionary<ItemActionType, ActionState>? itemActionStates)
|
||||
{
|
||||
return TryGetItemActionStates((EntityUid) item, out itemActionStates);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the item action state associated with the specified item action type for the specified item, if it has any.
|
||||
/// </summary>
|
||||
@@ -170,12 +163,6 @@ namespace Content.Shared.Actions.Components
|
||||
.Any(state => state.Key == actionType && state.Value.Enabled);
|
||||
}
|
||||
|
||||
/// <seealso cref="TryGetItemActionState(Content.Shared.Actions.ItemActionType,Robust.Shared.GameObjects.EntityUid,out Content.Shared.Actions.Components.ActionState)"/>
|
||||
public bool TryGetItemActionState(ItemActionType actionType, IEntity item, out ActionState actionState)
|
||||
{
|
||||
return TryGetItemActionState(actionType, (EntityUid) item, out actionState);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all action types that have non-initial state (granted, have a cooldown, or toggled on).
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user