Skip to main content

ActionItemHandlersBase

An internal abstract class in Root.Township, Alta.QuickAccessActions. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal base for action item handler collections: holds the ActionItemData list and the destroy callback.

Constructors​

MemberWhat it is
protected ActionItemHandlersBase(ActionItemData[] actionItems, Action<int, IPlayer> destroyItem)Creates an ActionItemHandlersBase from actionItems and destroyItem.

Fields​

MemberWhat it is
protected readonly ActionItemData[] actionItemsThe action item data, by index.
protected Action<int, IPlayer> destroyItemCallback that destroys a player's item by index, from ActionItemsManager.

Methods​

MemberWhat it is
protected ActionItemHandler CreateHandler(IPlayer player, int index)Makes an ActionItemHandler for a player and action index.
protected bool SummonIndexIsValid(int index)True if the index is inside the action item list; logs an error otherwise.