summaryrefslogtreecommitdiff
path: root/client/data/item.lua
blob: d2c5d13c20fc0383a3648eabb83cd335e6921ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local item = {}

local item_base = {
	get_desc = function(self)
		return self.desc
	end,
}

local item_m = {__index = item_base}

function item.create_new(name,desc,location)
	local ret = {name=name,desc=desc,location=location}
	setmetatable(ret,item_m)
	return ret
end
item.meta = item_m
return item