From 914512435d37d9f1e1ea4c045afd4ec5612b7534 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 30 Jul 2023 02:45:36 +0100 Subject: Replace movement controllers --- code/team/Team.cs | 74 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 38 insertions(+), 36 deletions(-) (limited to 'code/team/Team.cs') 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", + }; + } +} -- cgit v1.2.3-70-g09d2