feat: player/room user data now available on joined event

This commit is contained in:
2024-05-12 10:57:46 +03:00
parent a9e6a3e853
commit 646744c9a1
26 changed files with 328 additions and 143 deletions
+6 -1
View File
@@ -1,5 +1,4 @@
using System;
using Ragon.Server;
using Ragon.Server.Entity;
using Ragon.Server.Plugin;
using Ragon.Server.Room;
@@ -34,4 +33,10 @@ public class RelayRoomPlugin: BaseRoomPlugin
Console.WriteLine($"Entity destroyed: {entity.Id}");
return true;
}
public override bool OnData(RagonRoomPlayer player, byte[] data)
{
Console.WriteLine("Data received");
return true;
}
}