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