Show / Hide Table of Contents

Class ActionsSystem

Inheritance
System.Object
SharedActionsSystem
ActionsSystem
Namespace: Content.Client.Actions
Assembly: Content.Client.dll
Syntax
public sealed class ActionsSystem : SharedActionsSystem

Methods

| Improve this Doc View Source

ActionAdded(EntityUid, EntityUid, ActionsComponent, BaseActionComponent)

Declaration
protected override void ActionAdded(EntityUid performer, EntityUid actionId, ActionsComponent comp, BaseActionComponent action)
Parameters
Type Name Description
EntityUid performer
EntityUid actionId
ActionsComponent comp
BaseActionComponent action
| Improve this Doc View Source

ActionComparer((EntityUid, BaseActionComponent), (EntityUid, BaseActionComponent))

Declaration
public static int ActionComparer((EntityUid, BaseActionComponent) a, (EntityUid, BaseActionComponent) b)
Parameters
Type Name Description
System.ValueTuple<EntityUid, BaseActionComponent> a
System.ValueTuple<EntityUid, BaseActionComponent> b
Returns
Type Description
System.Int32
| Improve this Doc View Source

ActionRemoved(EntityUid, EntityUid, ActionsComponent, BaseActionComponent)

Declaration
protected override void ActionRemoved(EntityUid performer, EntityUid actionId, ActionsComponent comp, BaseActionComponent action)
Parameters
Type Name Description
EntityUid performer
EntityUid actionId
ActionsComponent comp
BaseActionComponent action
| Improve this Doc View Source

GetClientActions()

Declaration
public IEnumerable<(EntityUid Id, BaseActionComponent Comp)> GetClientActions()
Returns
Type Description
IEnumerable<System.ValueTuple<EntityUid, BaseActionComponent>>
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
SharedActionsSystem.Initialize()
| Improve this Doc View Source

LinkAllActions(ActionsComponent)

Declaration
public void LinkAllActions(ActionsComponent actions = null)
Parameters
Type Name Description
ActionsComponent actions
| Improve this Doc View Source

LoadActionAssignments(String, Boolean)

Load actions and their toolbar assignments from a file.

Declaration
public void LoadActionAssignments(string path, bool userData)
Parameters
Type Name Description
System.String path
System.Boolean userData
| Improve this Doc View Source

Shutdown()

Declaration
public override void Shutdown()
| Improve this Doc View Source

TriggerAction(EntityUid, BaseActionComponent)

Declaration
public void TriggerAction(EntityUid actionId, BaseActionComponent action)
Parameters
Type Name Description
EntityUid actionId
BaseActionComponent action
| Improve this Doc View Source

UnlinkAllActions()

Declaration
public void UnlinkAllActions()
| Improve this Doc View Source

UpdateAction(Nullable<EntityUid>, BaseActionComponent)

Declaration
protected override void UpdateAction(EntityUid? actionId, BaseActionComponent action = null)
Parameters
Type Name Description
System.Nullable<EntityUid> actionId
BaseActionComponent action

Events

| Improve this Doc View Source

ActionReplaced

Declaration
public event ActionsSystem.OnActionReplaced ActionReplaced
Event Type
Type Description
ActionsSystem.OnActionReplaced
| Improve this Doc View Source

ActionsUpdated

Declaration
public event Action? ActionsUpdated
Event Type
Type Description
System.Nullable<Action>
| Improve this Doc View Source

AssignSlot

Declaration
public event Action<List<ActionsSystem.SlotAssignment>>? AssignSlot
Event Type
Type Description
System.Nullable<Action<List<Content.Client.Actions.ActionsSystem.SlotAssignment>>>
| Improve this Doc View Source

ClearAssignments

Declaration
public event Action? ClearAssignments
Event Type
Type Description
System.Nullable<Action>
| Improve this Doc View Source

LinkActions

Declaration
public event Action<ActionsComponent>? LinkActions
Event Type
Type Description
System.Nullable<Action<ActionsComponent>>
| Improve this Doc View Source

OnActionAdded

Declaration
public event Action<EntityUid>? OnActionAdded
Event Type
Type Description
System.Nullable<Action<EntityUid>>
| Improve this Doc View Source

OnActionRemoved

Declaration
public event Action<EntityUid>? OnActionRemoved
Event Type
Type Description
System.Nullable<Action<EntityUid>>
| Improve this Doc View Source

UnlinkActions

Declaration
public event Action? UnlinkActions
Event Type
Type Description
System.Nullable<Action>
  • Improve this Doc
  • View Source
☀
☾
In This Article
  • Methods
    • ActionAdded(EntityUid, EntityUid, ActionsComponent, BaseActionComponent)
    • ActionComparer((EntityUid, BaseActionComponent), (EntityUid, BaseActionComponent))
    • ActionRemoved(EntityUid, EntityUid, ActionsComponent, BaseActionComponent)
    • GetClientActions()
    • Initialize()
    • LinkAllActions(ActionsComponent)
    • LoadActionAssignments(String, Boolean)
    • Shutdown()
    • TriggerAction(EntityUid, BaseActionComponent)
    • UnlinkAllActions()
    • UpdateAction(Nullable<EntityUid>, BaseActionComponent)
  • Events
    • ActionReplaced
    • ActionsUpdated
    • AssignSlot
    • ClearAssignments
    • LinkActions
    • OnActionAdded
    • OnActionRemoved
    • UnlinkActions
Back to top
Generated by DocFX
☀
☾