コード例 #1
0
 public SpriteDefinition AddSpriteDefinition(string spriteName, RectangleInt spriteRectangle, Vector? origin = null)
 {
     var spriteDefinition = new SpriteDefinition(this, spriteName, spriteRectangle, origin);
     this.definitions.Add(spriteName, spriteDefinition);
     return spriteDefinition;
 }
コード例 #2
0
 public SpriteAnimationTemplate AddFrame(SpriteDefinition frameSprite, float duration, SpriteTransform transform = null)
 {
     this.frames.Add(new SpriteAnimationFrameTemplate(frameSprite, duration, transform));
     return this;
 }
コード例 #3
0
 internal SpriteAnimationFrameTemplate(SpriteDefinition frameSprite, float duration, SpriteTransform transform = null)
 {
     this.FrameSprite = frameSprite;
     this.Duration = duration;
     this.Transform = transform;
 }