static int PopIntList(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker"); List <int> o = obj.PopIntList(); LuaScriptMgr.PushObject(L, o); return(1); }
public List <int> GetIntList(int index) { MsgUnPacker _unpacker = new MsgUnPacker(this.buff); _unpacker.skip(index); List <int> rst = _unpacker.PopIntList(); _unpacker.Close(); return(rst); }