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); } }
public void SetAnimation(Anims _Anims ) { _PlayerCurrentAnimation = GetBitmap(PlModel + _Anims); _GunCurrentAnimation = GetBitmap(GunModel + _Anims); }
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; } }