Exemple #1
0
        public virtual FrameMetadata GetFrameMetadata(float time, float deltaTime, float factor, SpriterAnimation first, SpriterAnimation second = null)
        {
            metadata.Clear();

            if (second == null)
            {
                SpriterProcessor.UpdateFrameMetadata(metadata, first, time, deltaTime);
            }
            else
            {
                SpriterProcessor.GetFrameMetadata(metadata, first, second, time, deltaTime, factor);
            }

            return(metadata);
        }
Exemple #2
0
 public static Dictionary <string, FrameMetadata[]> CalculateMetadata(SpriterEntity entity, int interval)
 {
     return(Calculate <FrameMetadata>(entity, interval, (d, a, t, i) => SpriterProcessor.UpdateFrameMetadata(d, a, t, i)));
 }