コード例 #1
0
ファイル: Settings.cs プロジェクト: SwamyDev/dogma-engine
        public int GetFramesPerSecond(string stripeName)
        {
            if (StripeFramesPerSecond.ContainsKey(stripeName))
            {
                return(StripeFramesPerSecond[stripeName]);
            }

            return(0);
        }
コード例 #2
0
ファイル: Settings.cs プロジェクト: SwamyDev/dogma-engine
 // 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);
     }
 }
コード例 #3
0
ファイル: Settings.cs プロジェクト: SwamyDev/dogma-engine
 public bool StripeConfigured(string stripeName)
 {
     return(StripeAnimationName.ContainsKey(stripeName) && StripeFrames.ContainsKey(stripeName) && StripeFramesPerSecond.ContainsKey(stripeName));
 }