Skip to main content

ControllerActionsManagerProxy

A class in Root.Township, the global namespace.

A stable set of ControllerActionProxy objects, one per controller action type, that can be relinked to whichever ControllerActionsManager is current. Each Controller has one as ActionsManager.

Constructors​

MemberWhat it is
ControllerActionsManagerProxy()Creates a ControllerActionsManagerProxy with default values.

Fields​

3 private and internal fields
MemberWhat it is
private Dictionary<ControllerActionType, ControllerActionProxy> actionsMapBacking field for ActionsMap.
private ControllerActionsManager linkedActionsManagerThe actions manager currently linked.
private static Logger loggerNLog logger for this class.

Properties​

MemberWhat it is
Dictionary<ControllerActionType, ControllerActionProxy> ActionsMap { get; }Proxies by action type, created on first use.
ControllerActionProxy this[ControllerActionType type] { get; }The proxy for the given action type.

Methods​

MemberWhat it is
void InitializeDictionary()Creates a proxy for every ControllerActionType except the zero value.
void LinkToActionsManager(ControllerActionsManager actionsManager)Links every proxy to the matching action on a new actions manager, unlinking the old one first.
void UnlinkFromActionsManager()Unlinks every proxy from its action.

Used in​

Members of other types that take, return or hold a ControllerActionsManagerProxy: