public int GetFramesPerSecond(string stripeName) { if (StripeFramesPerSecond.ContainsKey(stripeName)) { return(StripeFramesPerSecond[stripeName]); } return(0); }
// Set's the frames per second and adds a new field to the dictionary if necessary. public void SetFramesPerSecond(int fps, string stripeName) { if (StripeFramesPerSecond.ContainsKey(stripeName)) { StripeFramesPerSecond[stripeName] = fps; } else { StripeFramesPerSecond.Add(stripeName, fps); } }
public bool StripeConfigured(string stripeName) { return(StripeAnimationName.ContainsKey(stripeName) && StripeFrames.ContainsKey(stripeName) && StripeFramesPerSecond.ContainsKey(stripeName)); }