From 0400c646fadf940370edc9385dbbdc1fc08f9f7a Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 28 May 2025 16:06:35 +0200 Subject: [PATCH] Implemented ReplaceLocalParticipant --- src/Participant.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Participant.cs b/src/Participant.cs index 74c3773..936fd3c 100644 --- a/src/Participant.cs +++ b/src/Participant.cs @@ -33,7 +33,10 @@ namespace RoboidControl { this.udpClient = localParticipant.udpClient; } - public static readonly Participant localParticipant = new(); + public static Participant localParticipant = new(); + public static void ReplaceLocalParticipant(Participant participant) { + Participant.localParticipant = participant; + } public Thing root = null;