コード例 #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)
 {
 }