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

31 lines
854 B
C#
Raw Permalink Normal View History

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;
2017-05-09 06:15:34 +02:00
/// <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;
}
}
}