Ejemplo n.º 1
0
        internal static W3dRingPlaceholder Parse(BinaryReader reader)
        {
            var result = new W3dRingPlaceholder
            {
                ChunkType = reader.ReadUInt32(),
                ChunkSize = reader.ReadUInt32() & 0x7FFFFFFF
            };

            return(result);
        }
Ejemplo n.º 2
0
        internal static W3dRing Parse(BinaryReader reader, W3dParseContext context)
        {
            return(ParseChunk(reader, context, header =>
            {
                var result = new W3dRing
                {
                    Header = W3dRingHeader.Parse(reader)
                };

                result.Shader = (W3dRingShaderFunc)(reader.ReadUInt32() >> 24);
                result.UnknownFlag = (reader.ReadUInt32() >> 24);  // TODO: Determine What this flag is/does.

                result.Placeholder = W3dRingPlaceholder.Parse(reader);
                result.TextureTiling = reader.ReadUInt32();
                result.ColorInfo = W3dRingColorInfo.Parse(reader);
                result.OpacityInfo = W3dRingOpacityInfo.Parse(reader);
                result.InnerScaleKeyFrames = W3dRingScaleKeyFrames.Parse(reader);
                result.OuterScaleKeyFrames = W3dRingScaleKeyFrames.Parse(reader);

                return result;
            }));
        }