Get CLI to a base state

This commit is contained in:
derek.holloway committed 2026-08-07 13:20:32 -07:00
1 parent 068c88de4b
commit c8a0aef289
2 files changed
+28 -13

No files matched your search

+12 -2
View File
@@ -12,7 +12,11 @@ class clientExample {
}
void onClientConnected(mUDPClient user) {
Console.WriteLine("User connected with username: " + user.UserName);
Console.WriteLine("User connected to server with username: " + user.UserName);
}
void onClientJoined(mUDPClient user) {
Console.WriteLine("User is now in range of you and UDP connections started with user : " + user.UserName);
}
void onReceive(mUDPClient? user, dynamic data) {
@@ -29,8 +33,12 @@ class clientExample {
}
}
void onClientLeft(mUDPClient user) {
Console.WriteLine("User is no longer in range of you and UDP connections ended with user : " + user.UserName);
}
void onClientDisconnected(mUDPClient user) {
Console.WriteLine("User disconnected with username: " + user.UserName);
Console.WriteLine("User disconnected from server with username: " + user.UserName);
}
void onServerDisconnected() {
@@ -42,7 +50,9 @@ class clientExample {
if (clientObject == null) return;
clientObject.onServerConnected += onServerConnected;
clientObject.onUserConnected += onClientConnected;
clientObject.onUserJoined += onClientJoined;
clientObject.onDataReceived += onReceive;
clientObject.onUserLeft += onClientLeft;
clientObject.onUserDisconnected += onClientDisconnected;
clientObject.onServerDisconnected += onServerDisconnected;
}