Пример #1
0
        public AnimationMap(Dictionary<string, AnimationState> states, SpriteSheet spriteSheet, string initState)
            : base()
        {
            States = states;
            SpriteSheet = spriteSheet;
            AddUpdater(MainUpdate);

            SetState(initState);
        }
Пример #2
0
 public AnimationMap(List<AnimationState> states, SpriteSheet spriteSheet, string initState)
     : this(states.ToDictionary(s => s.Name, s => s), spriteSheet, initState)
 {
 }