Example #1
0
 private void UpdateItem(SimpleEditableSprite source, GamologySprite target)
 {
     target.Name            = source.Name;
     target.PositionX       = source.PositionX;
     target.PositionY       = source.PositionY;
     target.TextureFilename = source.TextureFilename;
     target.IsSolid         = source.IsSolid;
 }
Example #2
0
 private void CopyItem(GamologySprite source, SimpleEditableSprite target)
 {
     target.Id   = source.Id;
     target.Name = source.Name;
     if (EditMode)
     {
         target.PositionX       = source.PositionX;
         target.PositionY       = source.PositionY;
         target.TextureFilename = source.TextureFilename;
         target.IsSolid         = source.IsSolid;
     }
 }
Example #3
0
 public void SetSprite(GamologySprite sprite)
 {
     _editingSprite = sprite;
     Sprite         = new SimpleEditableSprite(this.CommandHandler);
     CopyItem(sprite, Sprite);
 }