public State() { gameTime = new GameTime(); history = new History(); var random = new System.Random(); serverInfo = new ServerJoinInfo(); serverInfo.seed = random.Next(); serverInfo.spawnPosition = new UnityEngine.Vector3(6.6f, 1.9f, 89.6f); serverInfo.globalRootGuid = GetGuid(); serverInfo.escapePodGuid = GetGuid(); serverInfo.fabricatorGuid = GetGuid(); serverInfo.medkitGuid = GetGuid(); serverInfo.radioGuid = GetGuid(); timeUpdate = new ServerTimeUpdate(); timeUpdate.timestamp = gameTime.GetCurrentTime(); }
private void Process(ServerTimeUpdate msg) { UpdateServerTime(msg.timestamp); }