static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.CustomDataMgr __cl_gen_ret = new xc.CustomDataMgr(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.CustomDataMgr constructor!")); }
static int _m_Reset(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CustomDataMgr __cl_gen_to_be_invoked = (xc.CustomDataMgr)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Reset( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_RemoveCustomData(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CustomDataMgr __cl_gen_to_be_invoked = (xc.CustomDataMgr)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 4 && translator.Assignable <xc.CustomDataType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) { xc.CustomDataType dataType; translator.Get(L, 2, out dataType); int value = LuaAPI.xlua_tointeger(L, 3); bool bPutServer = LuaAPI.lua_toboolean(L, 4); __cl_gen_to_be_invoked.RemoveCustomData(dataType, value, bPutServer); return(0); } if (__gen_param_count == 3 && translator.Assignable <xc.CustomDataType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { xc.CustomDataType dataType; translator.Get(L, 2, out dataType); int value = LuaAPI.xlua_tointeger(L, 3); __cl_gen_to_be_invoked.RemoveCustomData(dataType, value); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.CustomDataMgr.RemoveCustomData!")); }
static int _m_GetCustomData(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CustomDataMgr __cl_gen_to_be_invoked = (xc.CustomDataMgr)translator.FastGetCSObj(L, 1); try { { xc.CustomDataType type; translator.Get(L, 2, out type); System.Collections.Generic.List <int> __cl_gen_ret = __cl_gen_to_be_invoked.GetCustomData(type); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_IsExistCustomData(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CustomDataMgr __cl_gen_to_be_invoked = (xc.CustomDataMgr)translator.FastGetCSObj(L, 1); try { { xc.CustomDataType type; translator.Get(L, 2, out type); int value = LuaAPI.xlua_tointeger(L, 3); bool __cl_gen_ret = __cl_gen_to_be_invoked.IsExistCustomData(type, value); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }