Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    public List <int> GetIntList(int index)
    {
        MsgUnPacker _unpacker = new MsgUnPacker(this.buff);

        _unpacker.skip(index);
        List <int> rst = _unpacker.PopIntList();

        _unpacker.Close();
        return(rst);
    }