aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn/Player.Character.cs
blob: 579107a62ade5f7e4a4f99f2317eece35856b1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Sandbox;

namespace MurderGame;

public partial class Player
{
	[Net] public Team Team { get; set; }

	[Net] public string CharacterName { get; set; }

	[Net] public Color Color { get; set; } = Color.White;
	
	public string HexColor {
		get
		{
			return Color.Hex;	
		}
	}

	public string GetTeamName()
	{
		return TeamOperations.GetTeamName( Team );
	}
}