static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.CooldownManager __cl_gen_ret = new xc.CooldownManager(); 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.CooldownManager constructor!")); }
static int _m_Reset(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CooldownManager __cl_gen_to_be_invoked = (xc.CooldownManager)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_GetCDFromServer(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CooldownManager __cl_gen_to_be_invoked = (xc.CooldownManager)translator.FastGetCSObj(L, 1); try { { uint skill_id = LuaAPI.xlua_touint(L, 2); uint __cl_gen_ret = __cl_gen_to_be_invoked.GetCDFromServer(skill_id); LuaAPI.xlua_pushuint(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_HandleServerData(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CooldownManager __cl_gen_to_be_invoked = (xc.CooldownManager)translator.FastGetCSObj(L, 1); try { { ushort protocol = (ushort)LuaAPI.xlua_tointeger(L, 2); byte[] data = LuaAPI.lua_tobytes(L, 3); __cl_gen_to_be_invoked.HandleServerData(protocol, data); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }