예제 #1
0
 public VisualEffect(int apiVersion, EventHandler handler, ISection section)
     : base(apiVersion, handler, section)
 {
     mScreenSizeRange    = new Vector2ValueLE(apiVersion, handler);
     mLODDistances       = new DataList <FloatValue>(handler);
     mExtendedLODWeights = new Vector3ValueLE(apiVersion, handler);
     mDescriptions       = new SectionDataList <Description>(handler, mSection);
 }
예제 #2
0
        private void CastIndices()
        {
            // Cast Index to IndexBuilder
            MemoryStream s = new MemoryStream();

            base.Descriptions.UnParse(s);
            s.Position          = 0L;
            this.mIndexBuilders = new SectionDataList <IndexBuilder>(base.handler, base.mSection, s);
            //base.Items = null;
        }
예제 #3
0
        protected override void Parse(Stream stream)
        {
            var s = new BinaryStreamWrapper(stream, ByteOrder.BigEndian);

            s.Read(out mFlags);
            s.Read(out mComponentAppFlagsMask);
            s.Read(out mNotifyMessageId);
            mScreenSizeRange = new Vector2ValueLE(requestedApiVersion, handler, stream);
            s.Read(out mCursorActiveDistance);
            s.Read(out mCursorButton);
            mLODDistances       = new DataList <FloatValue>(handler, stream);
            mExtendedLODWeights = new Vector3ValueLE(requestedApiVersion, handler, stream);
            s.Read(out mSeed);
            mDescriptions = new SectionDataList <Description>(handler, mSection, stream);
        }