idTech4.Game.idGameRules.SpawnPlayer C# (CSharp) Method

SpawnPlayer() public method

public SpawnPlayer ( int clientIndex ) : void
clientIndex int
return void
		public virtual void SpawnPlayer(int clientIndex)
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			bool inGame = idR.Game.PlayerStates[clientIndex].InGame;

			idR.Game.PlayerStates[clientIndex].Clear();

			if(idR.Game.IsClient == false)
			{
				idR.Game.PlayerStates[clientIndex].InGame = inGame;
			}
		}