2014-09-18 21:54:29 +03:00
|
|
|
-- Buildat: client/init.lua
|
|
|
|
buildat = {}
|
|
|
|
function buildat:Logger(module)
|
|
|
|
local logger = {}
|
|
|
|
function logger:info(text)
|
|
|
|
print(os.date("%b %d %H:%M:%S "..module..": "..text))
|
|
|
|
end
|
2014-09-19 03:07:37 +03:00
|
|
|
function logger:error(text)
|
|
|
|
print(os.date("%b %d %H:%M:%S "..module.." ERROR: "..text))
|
|
|
|
end
|
2014-09-18 21:54:29 +03:00
|
|
|
return logger
|
|
|
|
end
|
|
|
|
|
2014-09-19 10:30:49 +03:00
|
|
|
local log = buildat:Logger("__client/init")
|
2014-09-18 21:54:29 +03:00
|
|
|
|
|
|
|
log:info("init.lua loaded")
|
|
|
|
|
2014-09-19 10:30:49 +03:00
|
|
|
dofile(__buildat_get_path("share").."/client/test.lua")
|
|
|
|
dofile(__buildat_get_path("share").."/client/packet.lua")
|
|
|
|
dofile(__buildat_get_path("share").."/client/sandbox.lua")
|
2014-09-18 21:54:29 +03:00
|
|
|
|