private Tuple <SubspaceDisplayEntry[], int> GetSubspaceDisplayEntriesMCWNone() { if (cacheGetSubspaceDisplayEntriesMCWNone == null) { cacheGetSubspaceDisplayEntriesMCWNone = new Tuple <SubspaceDisplayEntry[], int>(new SubspaceDisplayEntry[] { new SubspaceDisplayEntry() }, 1); } int currentSubspace = timeSyncer.currentSubspace; List <string> allPlayers = new List <string>(); allPlayers.Add(dmpSettings.playerName); allPlayers.AddRange(clientSubspaceList.Keys); allPlayers.Sort(PlayerSorter); SubspaceDisplayEntry sde = cacheGetSubspaceDisplayEntriesMCWNone.Item1[0]; sde.players = allPlayers.ToArray(); sde.isUs = true; if (currentSubspace != -1) { sde.subspaceID = timeSyncer.currentSubspace; sde.subspaceEntry = timeSyncer.GetSubspace(currentSubspace); } else { sde.isWarping = true; if (clientWarpList.ContainsKey(dmpSettings.playerName)) { sde.warpingEntry = clientWarpList[dmpSettings.playerName]; } } return(cacheGetSubspaceDisplayEntriesMCWNone); }
private SubspaceDisplayEntry[] GetSubspaceDisplayEntriesMCWNone() { int currentSubspace = timeSyncer.currentSubspace; List <string> allPlayers = new List <string>(); allPlayers.Add(dmpSettings.playerName); allPlayers.AddRange(clientSubspaceList.Keys); allPlayers.Sort(PlayerSorter); SubspaceDisplayEntry sde = new SubspaceDisplayEntry(); sde.players = allPlayers.ToArray(); sde.isUs = true; if (currentSubspace != -1) { sde.subspaceID = timeSyncer.currentSubspace; sde.subspaceEntry = timeSyncer.GetSubspace(currentSubspace); } else { sde.isWarping = true; if (clientWarpList.ContainsKey(dmpSettings.playerName)) { sde.warpingEntry = clientWarpList[dmpSettings.playerName]; } } return(new SubspaceDisplayEntry[] { sde }); }