Example #1
0
        public string GetAnimationName(string stripeName)
        {
            if (StripeAnimationName.ContainsKey(stripeName))
            {
                return(StripeAnimationName[stripeName]);
            }

            return(string.Empty);
        }
Example #2
0
 // Set's the animation name and adds a new field to the dictionary if necessary.
 public void SetAnimationName(string name, string stripeName)
 {
     if (StripeAnimationName.ContainsKey(stripeName))
     {
         StripeAnimationName[stripeName] = name;
     }
     else
     {
         StripeAnimationName.Add(stripeName, name);
     }
 }
Example #3
0
 public bool StripeConfigured(string stripeName)
 {
     return(StripeAnimationName.ContainsKey(stripeName) && StripeFrames.ContainsKey(stripeName) && StripeFramesPerSecond.ContainsKey(stripeName));
 }