Exemple #1
0
        protected override void Parse(Stream stream)
        {
            var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

            s.Read(out mMapId);

            s.Read(out mFlags);
            mFlags &= 0x3FF;

            s.Read(out mMapType);
            s.Read(out mImageId);
            mBounds = new RectangleValue(requestedApiVersion, handler, stream);
            s.Read(out mChannel);
            s.Read(out mOpKind);

            s.Read(out mOpArgMapId1);
            s.Read(out mOpArgMapId2);
            s.Read(out mOpArgMapId3);
            s.Read(out mOpArgMapId4);

            mOpArgValue1 = new Vector4ValueLE(requestedApiVersion, handler, stream);
            mOpArgValue2 = new Vector4ValueLE(requestedApiVersion, handler, stream);
            mOpArgValue3 = new Vector4ValueLE(requestedApiVersion, handler, stream);
            mOpArgValue4 = new Vector4ValueLE(requestedApiVersion, handler, stream);
        }
Exemple #2
0
 public Map(int apiVersion, EventHandler handler, ISection section)
     : base(apiVersion, handler, section)
 {
     mBounds      = new RectangleValue(apiVersion, handler);
     mOpArgValue1 = new Vector4ValueLE(apiVersion, handler);
     mOpArgValue2 = new Vector4ValueLE(apiVersion, handler);
     mOpArgValue3 = new Vector4ValueLE(apiVersion, handler);
     mOpArgValue4 = new Vector4ValueLE(apiVersion, handler);
 }