File: Metatype.lua

package info (click to toggle)
vcmi 1.6.5%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 32,060 kB
  • sloc: cpp: 238,971; python: 265; sh: 224; xml: 157; ansic: 78; objc: 61; makefile: 49
file content (24 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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