19 lines
407 B
Dart
19 lines
407 B
Dart
enum Role { dorfbewohner, werwolf, joker, seher, doctor }
|
|
|
|
extension RoleExtension on Role {
|
|
String get stringValue {
|
|
switch (this) {
|
|
case Role.dorfbewohner:
|
|
return 'Dorfbewohner';
|
|
case Role.werwolf:
|
|
return 'Werwolf';
|
|
case Role.joker:
|
|
return 'Joker';
|
|
case Role.seher:
|
|
return 'Seher';
|
|
case Role.doctor:
|
|
return 'Doctor';
|
|
}
|
|
}
|
|
}
|