chore: added title changing for clients for better debugging
This commit is contained in:
parent
42394f4625
commit
9f6958e5ba
@ -51,4 +51,9 @@ monoGameWindow.Graphics.PreferredBackBufferWidth = clientConfiguration.windowWid
|
|||||||
monoGameWindow.Graphics.PreferredBackBufferHeight = clientConfiguration.windowHeight;
|
monoGameWindow.Graphics.PreferredBackBufferHeight = clientConfiguration.windowHeight;
|
||||||
monoGameWindow.Graphics.GraphicsProfile = GraphicsProfile.HiDef;
|
monoGameWindow.Graphics.GraphicsProfile = GraphicsProfile.HiDef;
|
||||||
|
|
||||||
|
universe.FindBehaviour<Syntriax.Engine.Network.INetworkCommunicatorClient>()?
|
||||||
|
.OnConnectionEstablished.AddOneTimeListener(
|
||||||
|
(sender, connection) => monoGameWindow.Window.Title = $"Client {connection.Id}"
|
||||||
|
);
|
||||||
|
|
||||||
monoGameWindow.Run();
|
monoGameWindow.Run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user