aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn/Player.Character.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/pawn/Player.Character.cs')
-rw-r--r--code/pawn/Player.Character.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/code/pawn/Player.Character.cs b/code/pawn/Player.Character.cs
new file mode 100644
index 0000000..a8fc19c
--- /dev/null
+++ b/code/pawn/Player.Character.cs
@@ -0,0 +1,17 @@
+using Sandbox;
+
+namespace MurderGame;
+
+public partial class Player
+{
+ [Net] public Team Team { get; set; }
+
+ [Net] public string CharacterName { get; set; }
+
+ [Net] public string HexColor { get; set; }
+
+ public string GetTeamName()
+ {
+ return TeamOperations.GetTeamName( Team );
+ }
+}