コード例 #1
0
ファイル: MsgUnPackerWrap.cs プロジェクト: soulhez/RPG_JG
    static int PopFloat(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker");
        float       o   = obj.PopFloat();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #2
0
ファイル: MsgUnPacker.cs プロジェクト: soulhez/RPG_JG
    public float GetFloat(int index)
    {
        MsgUnPacker _unpacker = new MsgUnPacker(this.buff);

        _unpacker.skip(index);
        float rst = _unpacker.PopFloat();

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