/// <summary> /// Tries to find an instance of a girl's definition with the specified name, case-insensitive. /// </summary> /// <param name="firstName">The first name of the girl to find.</param> /// <returns>The definition of the girl, or default if not found.</returns> public static GirlDefinition GetGirl(string firstName) => Girls.FirstOrDefault(girl => string.Equals(girl.firstName, firstName, StringComparison.OrdinalIgnoreCase));
/// <summary> /// Tries to find an instance of a girl's definition that matches with the specified ID. /// </summary> /// <param name="girlId">The ID of the girl to find.</param> /// <returns>The definition of the girl, or default if not found.</returns> public static GirlDefinition GetGirl(GirlId girlId) => Girls.FirstOrDefault(girl => (GirlId)girl.id == girlId);