private void SendSyncMessages() { syncCoordinator.AreasToSync = syncCoordinator.AreasToSync.Distinct().ToList(); foreach (var area in syncCoordinator.AreasToSync) { var areaSyncData = gameStateService.GetAreaSyncData(area); hubService.BroadcastAreaSync(areaSyncData); } }
public AreaSyncData RequestAreaSync(string areaId, string playerName) { try { logService.Log("Requesting area sync"); return(gameStateService.GetAreaSyncData(areaId)); } catch (Exception e) { logService.Log(e); return(null); } }