PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/TGame/TData/Format/DataFormatLua.cpp

http://awoe.googlecode.com/
C++ | 19 lines | 15 code | 4 blank | 0 comment | 0 complexity | f33c6554a5629517643a55e2a2844cdb MD5 | raw file
 1#include "stdafx.h"
 2#include "DataFormatLua.h"
 3#include "Manager/DataManagerLua.h"
 4
 5
 6
 7bool
 8DataFormatLua::load(const string& fileName, IDataManager* mgr)
 9{
10	DataManagerLua::push(Lua::instance()->state(), mgr);
11	Lua::instance()->push(fileName);	// file name as table name of the data
12	return Lua::instance()->call("onLoadDatas", 2, 0);
13}
14
15bool
16DataFormatLua::save(const string& fileName, IDataManager* mgr)
17{
18	return true;
19}