From 0aae46ecc38005236210f7e243f02cac39ab1dc3 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 27 Jan 2019 10:32:09 -0500 Subject: Inital commit --- client/data/home.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 client/data/home.lua (limited to 'client/data/home.lua') diff --git a/client/data/home.lua b/client/data/home.lua new file mode 100644 index 0000000..bb65aee --- /dev/null +++ b/client/data/home.lua @@ -0,0 +1,34 @@ +--[[ +--Contains the code for a home +--]] +local home = {} + +local home_base = { + add_room = function(self,fromroom,direction) + + end, + rooms = { + + }, + serialize = function(self) + + end, + deserialize = function(self,data) + + end, + add_item_to_room = function(self,room,item,location_desc) + + end +} + +local home_m = {__index=home_base} + +function home.new(player_name,data) + local ret = { + created_by=player_name + } + + return ret +end + +return home -- cgit v1.2.3-70-g09d2