// Constructor public User(string username, NetConnection netConnection = null, MPRoleType mpRole = MPRoleType.Client) { this.username = username; this.netConnection = NetConnection; this.mpRole = mpRole; }
/// <summary> /// Sets the current MPRole. /// </summary> /// <param name="newMPRoleType">New MPRoleType for MPRole.</param> public void SetMPRole(MPRoleType newMPRoleType) { MPRole = newMPRoleType; }