示例#1
0
    static int PopDouble(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker");
        double      o   = obj.PopDouble();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
示例#2
0
    public double GetDouble(int index)
    {
        MsgUnPacker _unpacker = new MsgUnPacker(this.buff);

        _unpacker.skip(index);
        double rst = _unpacker.PopDouble();

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