Exemplo n.º 1
0
 public AnimationsBatchManager(
     TimeSpan changeInterval,
     AnimationFrameStrategy frameStrategy = AnimationFrameStrategy.OneByOneStartFromZero)
 {
     this.changeInterval = changeInterval;
     this.frameStrategy  = frameStrategy;
     managers            = new Dictionary <string, AnimationManager>();
 }
Exemplo n.º 2
0
        public AnimationManager(
            SymbolsImage[] frames,
            TimeSpan frameLifeTime,
            AnimationFrameStrategy frameStrategy = AnimationFrameStrategy.OneByOneStartFromZero)
        {
            this.frames        = frames;
            this.frameLifeTime = frameLifeTime;
            this.frameStrategy = frameStrategy;

            currentFrameIndex = GetInitialFrameIndex();

            lastUpdated = DateTime.Now;
        }