static int _m_ShowDanmaku(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.DBInstanceTypeControl __cl_gen_to_be_invoked = (xc.DBInstanceTypeControl)translator.FastGetCSObj(L, 1); try { { uint war_type = LuaAPI.xlua_touint(L, 2); uint war_sub_type = LuaAPI.xlua_touint(L, 3); uint chat_channel = LuaAPI.xlua_touint(L, 4); bool __cl_gen_ret = __cl_gen_to_be_invoked.ShowDanmaku(war_type, war_sub_type, chat_channel); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string name = LuaAPI.lua_tostring(L, 2); string path = LuaAPI.lua_tostring(L, 3); xc.DBInstanceTypeControl __cl_gen_ret = new xc.DBInstanceTypeControl(name, path); 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.DBInstanceTypeControl constructor!")); }
static int _m_Load(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.DBInstanceTypeControl __cl_gen_to_be_invoked = (xc.DBInstanceTypeControl)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Load( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetReplaceOtherPlayerName(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.DBInstanceTypeControl __cl_gen_to_be_invoked = (xc.DBInstanceTypeControl)translator.FastGetCSObj(L, 1); try { { uint war_type = LuaAPI.xlua_touint(L, 2); uint war_sub_type = LuaAPI.xlua_touint(L, 3); string __cl_gen_ret = __cl_gen_to_be_invoked.GetReplaceOtherPlayerName(war_type, war_sub_type); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }