Skip to main content

ActionItemHandlerCollectionMap

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

Server side store of summoned action item handlers: one ActionItemHandlerCollection per player. ActionItemsManager uses it on the server.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private readonly Dictionary<IPlayer, ActionItemHandlerCollection> serverSideAllPlayersActionItemsMapHandler collection for each player.

Methods​

MemberWhat it is
ActionItemHandler GetHandlerForActionIndex(IPlayer player, int actionIndex)Gets the player's handler for an action index, creating the player's collection on first use.
bool IsSpawnedFor(IPlayer player, int index)True if the player has the action's item spawned.
void RemovePlayer(IPlayer player)Drops a player's handlers, called when they disconnect. Logs a warning if they had none.