ensure root is defined
This commit is contained in:
parent
e48ab979b0
commit
829c4cdd25
@ -29,6 +29,10 @@ namespace RoboidControl {
|
||||
public Participant(string ipAddress, int port, Participant localParticipant = null) {
|
||||
this.ipAddress = ipAddress;
|
||||
this.port = port;
|
||||
|
||||
this.root = Thing.CreateRoot(this);
|
||||
this.root.name = "Root";
|
||||
|
||||
if (localParticipant != null)
|
||||
this.udpClient = localParticipant.udpClient;
|
||||
}
|
||||
@ -39,7 +43,6 @@ namespace RoboidControl {
|
||||
}
|
||||
|
||||
public Thing root = null;
|
||||
|
||||
/// <summary>
|
||||
/// The Ip Address of a participant. When the participant is local, this contains 0.0.0.0
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user