Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Getting the server time on the client for a room

$
0
0
Hi,

I'm using Photon Enterprise to create a room and passing a GameProperty called CreationTime, which simply holds an int of Environment.TickCount from the server, marking the time the room was created. The client sends it as 0 when CreateRoom is raised, then I modify this property on the server when PluginBase.OnCreateGame is fired, BEFORE calling Continue().

When I get the OpResponse from the server (ServerConnection.GameServer) saying the room is created, the GameProperties sent back from the server are not modified, and CreationTime is still 0.

Any ideas on how to make this work, or a better approach?

Best regards,
Shaun

Viewing all articles
Browse latest Browse all 1557

Trending Articles