Beispiel #1
0
        private void ReadElementChildNodes(XmlElement animationMapElement)
        {
            foreach (var node in animationMapElement.ChildNodes)
            {
                var element = node as XmlElement;

                if (element == null)
                {
                    continue;
                }

                if (element.Name == ANIMATION_STATE)
                {
                    AnimationStateReader stateReader = new AnimationStateReader(element);
                    stateReader.Read();

                    AnimationState state = new AnimationState(
                        stateReader.StateName,
                        stateReader.StepActions,
                        AnimationStateLoopType.Cycle);
                    States.Add(stateReader.StateName, state);
                }
            }
        }
        private void ReadElementChildNodes(XmlElement animationMapElement)
        {
            foreach (var node in animationMapElement.ChildNodes)
            {
                var element = node as XmlElement;

                if (element == null)
                {
                    continue;
                }

                if (element.Name == ANIMATION_STATE)
                {
                    AnimationStateReader stateReader = new AnimationStateReader(element);
                    stateReader.Read();

                    AnimationState state = new AnimationState(
                        stateReader.StateName,
                        stateReader.StepActions,
                        AnimationStateLoopType.Cycle);
                    States.Add(stateReader.StateName, state);
                }
            }
        }