local h=require("\112\108\046\099\108\097\115\115")local Y=h()function Y._init(h)h.states={}end function Y.__index(Y,h)local q=h:GetPlayerID()if Y.states[q]==nil then Y.states[q]={}end return Y.states[q]end return Y
--- PlayerStates class.
-- @classmod invokation.combos.PlayerStates
local class = require("pl.class")

local M = class()

--- Constructor.
function M:_init()
  self.states = {}
end

--- Index metamethod.
-- @tparam CDOTAPlayer player Player
-- @treturn table Player state
function M:__index(player)
  local id = player:GetPlayerID()

  if self.states[id] == nil then
    self.states[id] = {}
  end

  return self.states[id]
end

return M
