Exemple #1
0
        public static Enemy Create(string name, double x, double y)
        {
            X = x;
            Y = y;

            return(SCommon.FirstOrDie(Enemies, enemy => enemy.Name == name, () => new DDError(name)).Creator());
        }
Exemple #2
0
 public static Tile Create(string name)
 {
     return(SCommon.FirstOrDie(Tiles, tile => tile.Name == name, () => new DDError(name)).Creator());
 }