public void AddBuff(Buff.BuffInterface buff) { if (m_Entity != null) { m_Entity.m_Buffs.AddBuff(buff.m_Buff); } }
static internal void Lua_Buff_BuffFunc(LuaFunction ld, Buff.BuffInterface a1, float a2) { IntPtr l = ld.L; int error = pushTry(l); pushValue(l, a1); pushValue(l, a2); ld.pcall(2, error); LuaDLL.lua_settop(l, error - 1); }
static public int GetTime(IntPtr l) { try { Buff.BuffInterface self = (Buff.BuffInterface)checkSelf(l); var ret = self.GetTime(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { Buff.BuffInterface o; Buff a1; checkType(l, 2, out a1); o = new Buff.BuffInterface(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }