Cyber/Assets/Scripts/Networking/Serverside/SConnectedPlayer.cs
2017-05-12 01:50:11 +03:00

32 lines
865 B
C#

using Cyber.Entities.SyncBases;
using UnityEngine.Networking;
namespace Cyber.Networking.Serverside {
/// <summary>
/// Represents a player on the server. This class is used by the server.
/// The S stands for "Server".
/// </summary>
public class SConnectedPlayer {
/// <summary>
/// The player's connection ID.
/// </summary>
public readonly NetworkConnection Connection;
/// <summary>
/// The player's controlled character
/// </summary>
public Character Character;
/// <summary>
/// Create a connected player and give it a connection;
/// </summary>
/// <param name="connectionID">The player's connection</param>
public SConnectedPlayer(NetworkConnection connectionID) {
Connection = connectionID;
}
}
}