diff options
Diffstat (limited to 'code/team')
| -rw-r--r-- | code/team/Team.cs | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/code/team/Team.cs b/code/team/Team.cs index ccca6eb..8c9a7d7 100644 --- a/code/team/Team.cs +++ b/code/team/Team.cs @@ -15,43 +15,8 @@ public enum Team : ushort }
// why are c# enums so bad
-public static class TeamOperations
+public static class TeamCapabilities
{
-
- public static string GetTeamName(Team team)
- {
- return team switch
- {
- Team.Detective => "Detective",
- Team.Murderer => "Murderer",
- Team.Bystander => "Bystander",
- Team.Spectator => "Spectator",
- _ => "None",
- };
- }
-
- public static string GetTeamColour(Team team)
- {
- return team switch
- {
- Team.Detective => "#33A0FF",
- Team.Murderer => "#FF4136",
- Team.Bystander => "#33A0FF",
- _ => "#AAAAAA",
- };
- }
-
- public static string GetTeamDescription(Team team)
- {
- return team switch
- {
- Team.Detective => "There is a murderer on the loose! Find out who they are and shoot them before they kill everybody else.",
- Team.Murderer => "Kill everybody else in time and avoid detection. At least one other player is armed.",
- Team.Bystander => "There is a murderer on the loose! Avoid getting killed and work with others to establish who the murderer is.",
- _ => "None",
- };
- }
-
public static bool CanSprint(Team team)
{
return team switch
@@ -89,3 +54,40 @@ public static class TeamOperations pawn.Inventory.SetPrimaryWeapon( new Knife() );
}
}
+public static class TeamOperations
+{
+
+ public static string GetTeamName(Team team)
+ {
+ return team switch
+ {
+ Team.Detective => "Detective",
+ Team.Murderer => "Murderer",
+ Team.Bystander => "Bystander",
+ Team.Spectator => "Spectator",
+ _ => "None",
+ };
+ }
+
+ public static string GetTeamColour(Team team)
+ {
+ return team switch
+ {
+ Team.Detective => "#33A0FF",
+ Team.Murderer => "#FF4136",
+ Team.Bystander => "#33A0FF",
+ _ => "#AAAAAA",
+ };
+ }
+
+ public static string GetTeamDescription(Team team)
+ {
+ return team switch
+ {
+ Team.Detective => "There is a murderer on the loose! Find out who they are and shoot them before they kill everybody else.",
+ Team.Murderer => "Kill everybody else in time and avoid detection. At least one other player is armed.",
+ Team.Bystander => "There is a murderer on the loose! Avoid getting killed and work with others to establish who the murderer is.",
+ _ => "None",
+ };
+ }
+}
|
