/TGame/TData/Format/DataFormatLua.cpp
http://awoe.googlecode.com/ · C++ · 19 lines · 15 code · 4 blank · 0 comment · 0 complexity · f33c6554a5629517643a55e2a2844cdb MD5 · raw file
- #include "stdafx.h"
- #include "DataFormatLua.h"
- #include "Manager/DataManagerLua.h"
-
-
-
- bool
- DataFormatLua::load(const string& fileName, IDataManager* mgr)
- {
- DataManagerLua::push(Lua::instance()->state(), mgr);
- Lua::instance()->push(fileName); // file name as table name of the data
- return Lua::instance()->call("onLoadDatas", 2, 0);
- }
-
- bool
- DataFormatLua::save(const string& fileName, IDataManager* mgr)
- {
- return true;
- }