mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-03 12:16:22 +00:00
25 lines
482 B
TypeScript
25 lines
482 B
TypeScript
|
export enum Gender {
|
||
|
GENDERLESS = -1,
|
||
|
FEMALE,
|
||
|
MALE
|
||
|
}
|
||
|
|
||
|
export function getGenderSymbol(gender: Gender) {
|
||
|
switch (gender) {
|
||
|
case Gender.MALE:
|
||
|
return '♂';
|
||
|
case Gender.FEMALE:
|
||
|
return '♀';
|
||
|
}
|
||
|
return '';
|
||
|
}
|
||
|
|
||
|
export function getGenderColor(gender: Gender) {
|
||
|
switch (gender) {
|
||
|
case Gender.MALE:
|
||
|
return '#40c8f8';
|
||
|
case Gender.FEMALE:
|
||
|
return '#f89890';
|
||
|
}
|
||
|
return '#ffffff';
|
||
|
}
|