コード例 #1
0
        internal static W3dEmitterBlurTimeKeyframes Parse(BinaryReader reader)
        {
            var result = new W3dEmitterBlurTimeKeyframes
            {
                Header = W3dEmitterBlurTimeHeader.Parse(reader)
            };

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

            return(result);
        }
コード例 #2
0
        internal static W3dEmitterBlurTimeKeyframes Parse(BinaryReader reader, W3dParseContext context)
        {
            return(ParseChunk(reader, context, header =>
            {
                var result = new W3dEmitterBlurTimeKeyframes
                {
                    Header = W3dEmitterBlurTimeHeader.Parse(reader)
                };

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

                return result;
            }));
        }