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