public static int ToWorldsEndTypeCode(WorldsEndType worldsEndType) { return(PairConverter.Convert(worldsEndTypePairs, worldsEndType, WORLDS_END_TYPE_INVALID_CODE, p => p.WorldsEndType, p => p.Code)); }
public WorldsEndTypePair(WorldsEndType worldsEndType, string text, int code) { WorldsEndType = worldsEndType; Text = text; Code = code; }