cpd_David_und_Yusuf/lib/models/role.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';
}
}
}