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

            return(string.Empty);
        }
예제 #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);
     }
 }
예제 #3
0
 public bool StripeConfigured(string stripeName)
 {
     return(StripeAnimationName.ContainsKey(stripeName) && StripeFrames.ContainsKey(stripeName) && StripeFramesPerSecond.ContainsKey(stripeName));
 }