Exemplo n.º 1
0
        internal static W3dEmitterFrameKeyframes Parse(BinaryReader reader)
        {
            var result = new W3dEmitterFrameKeyframes
            {
                Header = W3dEmitterFrameHeader.Parse(reader)
            };

            result.Keyframes = new W3dEmitterFrameKeyframe[result.Header.KeyframeCount + 1];
            for (var i = 0; i < result.Keyframes.Length; i++)
            {
                result.Keyframes[i] = W3dEmitterFrameKeyframe.Parse(reader);
            }

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

                result.Keyframes = new W3dEmitterFrameKeyframe[result.Header.KeyframeCount + 1];
                for (var i = 0; i < result.Keyframes.Length; i++)
                {
                    result.Keyframes[i] = W3dEmitterFrameKeyframe.Parse(reader);
                }

                return result;
            }));
        }