Exemplo n.º 1
0
 static EnemyType()
 {
     enemyTypeNameMap = new Dictionary <string, EnemyType>();
     None             = new EnemyType("None", 0);
     Add(None);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determines whether this <see cref="EnemyType"/> is equal to the specified <see cref="EnemyType"/>.
 /// </summary>
 /// <param name="other">The object.</param>
 /// <returns>
 /// A boolean value indicating whether this <see cref="EnemyType"/> is equal to the specified <see cref="EnemyType"/>.
 /// Value <c>true</c> if they are equal; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(EnemyType other) => string.Equals(Name, other.Name) && Points == other.Points;