Beispiel #1
0
        private void ParseTransition(IniParser parser, Action <BridgeTransition> callback)
        {
            var transitionType = parser.ParseAttributeEnum <BridgeTransitionType>("Transition");
            var toState        = parser.ParseAttributeEnum <BodyDamageType>("ToState");
            var effectNum      = parser.ParseAttributeInteger("EffectNum");

            var transition = Transitions.FirstOrDefault(x =>
                                                        x.Transition == transitionType &&
                                                        x.ToState == toState &&
                                                        x.EffectNum == effectNum);

            if (transition == null)
            {
                Transitions.Add(transition = new BridgeTransition(transitionType, toState, effectNum));
            }

            callback(transition);
        }