public string GetAnimationName(string stripeName) { if (StripeAnimationName.ContainsKey(stripeName)) { return(StripeAnimationName[stripeName]); } return(string.Empty); }
// 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); } }
public bool StripeConfigured(string stripeName) { return(StripeAnimationName.ContainsKey(stripeName) && StripeFrames.ContainsKey(stripeName) && StripeFramesPerSecond.ContainsKey(stripeName)); }