local P=require("\112\108\046\099\108\097\115\115")local E=P()E.DEVELOPMENT="\100\101\118\101\108\111\112\109\101\110\116"E.PRODUCTION="\112\114\111\100\117\099\116\105\111\110"function E._init(C,P)C.name=P or E.PRODUCTION C.development=C.name==E.DEVELOPMENT C.production=C.name==E.PRODUCTION end return E
--- Env class.
-- @classmod invokation.game_mode.Env
local class = require("pl.class")

local M = class()

--- Environment modes
-- @section modes

--- Development
-- @tfield string DEVELOPMENT
M.DEVELOPMENT = "development"

--- Production
-- @tfield string PRODUCTION
M.PRODUCTION = "production"

--- Methods
-- @section methods

--- Constructor.
-- @tparam[opt=PRODUCTION] string name Environment name.
function M:_init(name)
  self.name = name or M.PRODUCTION
  self.development = self.name == M.DEVELOPMENT
  self.production = self.name == M.PRODUCTION
end

return M
