Пример #1
0
 public AnimatedSprite(AnimatedSpriteDefinition definition, SpriteInfo spriteInfo, AnimationInfo animInfo)
     : base(spriteInfo)
 {
     _definition = definition;
 }
Пример #2
0
 public AnimatedSprite(AnimatedSpriteDefinition definition)
 {
     _definition = definition;
     _animData = new AnimationInfo();
 }
Пример #3
0
 public AnimatedSprite(AnimatedSpriteDefinition definition, SpriteInfo spriteInfo)
     : base(spriteInfo)
 {
     _definition = definition;
     _animData = new AnimationInfo();
 }
 public void Draw(SpriteBatch spriteBatch, PointFP position, AnimationInfo animData, SpriteInfo spriteData)
 {
     _frames[animData.CurrentFrameIndex].Frame.Draw(spriteBatch, position, spriteData);
 }