コード例 #1
0
 //creates an Entity with the specified icon and image
 public Entity(char icon, string imageName) : this(icon)
 {
     Sprite = new SpriteEntity();
     Sprite.Load(imageName);
     Icon      = icon;
     OnUpdate += rotateall;
     AddChild(Sprite);
 }
コード例 #2
0
 //Creates an Entity with the specified icon and image
 public Entity(char icon, string imageName) : this(icon)
 {
     Sprite = new SpriteEntity();
     Sprite.Load(imageName);
     AddChild(Sprite);
 }