pokerogue/src/data/gender.ts

26 lines
475 B
TypeScript
Raw Normal View History

2023-04-01 20:06:44 -04:00
export enum Gender {
GENDERLESS = -1,
MALE,
FEMALE
2023-04-01 20:06:44 -04:00
}
export function getGenderSymbol(gender: Gender) {
switch (gender) {
case Gender.MALE:
return "♂";
case Gender.FEMALE:
return "♀";
}
return "";
2023-04-01 20:06:44 -04:00
}
2023-04-08 20:35:45 -04:00
export function getGenderColor(gender: Gender, shadow?: boolean) {
switch (gender) {
case Gender.MALE:
return shadow ? "#006090" : "#40c8f8";
case Gender.FEMALE:
return shadow ? "#984038" : "#f89890";
}
return "#ffffff";
}