static int _m_CreateBuff(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Battle __cl_gen_to_be_invoked = (Logic.Battle)translator.FastGetCSObj(L, 1); { string buffId = LuaAPI.lua_tostring(L, 2); string skillId = LuaAPI.lua_tostring(L, 3); int lvl = LuaAPI.xlua_tointeger(L, 4); Logic.Controller.Bio caster = (Logic.Controller.Bio)translator.GetObject(L, 5, typeof(Logic.Controller.Bio)); Logic.Controller.Bio target = (Logic.Controller.Bio)translator.GetObject(L, 6, typeof(Logic.Controller.Bio)); Core.Math.Vec3 targetPoint; translator.Get(L, 7, out targetPoint); Logic.Controller.Buff __cl_gen_ret = __cl_gen_to_be_invoked.CreateBuff(buffId, skillId, lvl, caster, target, targetPoint); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _g_get_radius(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Controller.Buff __cl_gen_to_be_invoked = (Logic.Controller.Buff)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.radius); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_targetFlag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Controller.Buff __cl_gen_to_be_invoked = (Logic.Controller.Buff)translator.FastGetCSObj(L, 1); translator.PushLogicModelEntityFlag(L, __cl_gen_to_be_invoked.targetFlag); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Logic.Controller.Buff __cl_gen_ret = new Logic.Controller.Buff(); 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 Logic.Controller.Buff constructor!")); }
static int _m_GetBuff(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Battle __cl_gen_to_be_invoked = (Logic.Battle)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string rid = LuaAPI.lua_tostring(L, 2); Logic.Controller.Buff __cl_gen_ret = __cl_gen_to_be_invoked.GetBuff(rid); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 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 ownerId = LuaAPI.lua_tostring(L, 2); string buffId = LuaAPI.lua_tostring(L, 3); Logic.Controller.Buff __cl_gen_ret = __cl_gen_to_be_invoked.GetBuff(ownerId, buffId); 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 Logic.Battle.GetBuff!")); }