예제 #1
0
 public AnimatedImage GetBitmap(string s)
 {
     if (_Bitmaps.ContainsKey(s))
     {
         return(_Bitmaps[s]);
     }
     else
     {
         AnimatedImage anim = new AnimatedImage();
         anim._AnimatedBitmap = _DataBase.Get(s);
         if (anim._AnimatedBitmap == null)
         {
             throw new Exception(s + " animation not found");
         }
         anim.Load();
         _Bitmaps[s] = anim;
         return(anim);
     }
 }
예제 #2
0
 public void SetAnimation(Anims _Anims )
 {
     _PlayerCurrentAnimation = GetBitmap(PlModel + _Anims);
     _GunCurrentAnimation = GetBitmap(GunModel + _Anims);
 }
예제 #3
0
 public AnimatedImage GetBitmap(string s)
 {
     if (_Bitmaps.ContainsKey(s))
         return _Bitmaps[s];
     else
     {
         AnimatedImage anim = new AnimatedImage();
         anim._AnimatedBitmap = _DataBase.Get(s);
         if (anim._AnimatedBitmap == null)
         {
             throw new Exception(s + " animation not found");
         }
         anim.Load();
         _Bitmaps[s] = anim;
         return anim;
     }
 }