Ejemplo n.º 1
0
 public void AddBuff(Buff.BuffInterface buff)
 {
     if (m_Entity != null)
     {
         m_Entity.m_Buffs.AddBuff(buff.m_Buff);
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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));
     }
 }
Ejemplo n.º 4
0
 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));
     }
 }