Cyber/Assets/Scripts/Networking/Clientside/CConnectedPlayer.cs

31 lines
854 B
C#

using Cyber.Entities.SyncBases;
namespace Cyber.Networking.Clientside {
/// <summary>
/// Represents a connected player on the clientside. This class is used by clients.
/// The C stands for "Client".
/// </summary>
public class CConnectedPlayer {
/// <summary>
/// Connection ID on the global perspective.
/// </summary>
public readonly int ConnectionID;
/// <summary>
/// The player's controlled character.
/// </summary>
public Character Character;
/// <summary>
/// Create a connected player on the Clientside and give it it's ID.
/// </summary>
/// <param name="connectionID">Connection ID of the player.</param>
public CConnectedPlayer(int connectionID) {
ConnectionID = connectionID;
}
}
}