Alignement with C++
This commit is contained in:
parent
9d68f2043d
commit
a5664dea9d
@ -83,20 +83,10 @@ namespace RoboidControl {
|
||||
Participant.ReplaceLocalParticipant(this);
|
||||
}
|
||||
|
||||
private static ParticipantUDP isolatedParticipant = null;
|
||||
|
||||
/// <summary>
|
||||
/// Isolated participant is used when the application is run without networking
|
||||
/// </summary>
|
||||
/// <returns>A participant without networking support</returns>
|
||||
public static ParticipantUDP Isolated() {
|
||||
if (isolatedParticipant == null)
|
||||
isolatedParticipant = new ParticipantUDP(0);
|
||||
return isolatedParticipant;
|
||||
}
|
||||
|
||||
#endregion Init
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// The name of the participant
|
||||
/// </summary>
|
||||
@ -107,6 +97,7 @@ namespace RoboidControl {
|
||||
/// </summary>
|
||||
/// Isolated participants do not communicate with other participants
|
||||
public bool isIsolated = false;
|
||||
|
||||
/// <summary>
|
||||
/// The remote site when this participant is connected to a site
|
||||
/// </summary>
|
||||
@ -145,10 +136,9 @@ namespace RoboidControl {
|
||||
Console.WriteLine($"Broadcast address: {this.broadcastIpAddress}");
|
||||
}
|
||||
|
||||
#region Update
|
||||
#endregion Properties
|
||||
|
||||
protected ulong nextPublishMe = 0;
|
||||
protected ulong nextSendUpdate = 0;
|
||||
#region Update
|
||||
|
||||
public override void Update() {
|
||||
ulong currentTimeMS = Thing.GetTimeMs();
|
||||
@ -169,6 +159,9 @@ namespace RoboidControl {
|
||||
UpdateOtherThings(currentTimeMS);
|
||||
}
|
||||
|
||||
protected ulong nextPublishMe = 0;
|
||||
protected ulong nextSendUpdate = 0;
|
||||
|
||||
protected virtual void UpdateMyThings(ulong currentTimeMS) {
|
||||
foreach (Thing thing in this.things) {
|
||||
if (thing == null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user