Files
vcmi/scripts/lib/Metatype.lua
T

25 lines
380 B
Lua
Raw Normal View History

2018-03-17 17:58:30 +03:00
local T =
{
ARTIFACT = 1,
ARTIFACT_INSTANCE = 2,
CREATURE = 3,
CREATURE_INSTANCE = 4,
FACTION = 5,
HERO_CLASS = 6,
HERO_TYPE = 7,
HERO_INSTANCE = 8,
MAP_OBJECT_GROUP = 9,
MAP_OBJECT_TYPE = 10,
MAP_OBJECT_INSTANCE = 11,
SKILL = 12,
SPELL = 13
}
local M = setmetatable({},
{
__newindex = function() error("Metatype table is immutable") end,
__index = T
})
return M