示例#1
0
        private static bool IsServerOfSettingsRunning(ServerSettings serverSettings)
        {
            KeyValuePair <string, SDaysTDieServer> keyValuePair = SDaysTDieServersByUserIds.FirstOrDefault(x => x.Value.ServerSettings.WorldGenSeed == serverSettings.WorldGenSeed);

            return(keyValuePair.Key != "" && keyValuePair.Key != null);
        }
示例#2
0
 private static bool IsServerCountOfUserExceeding(ServerSettings serverSettings)
 {
     return(SDaysTDieServersByUserIds.ContainsKey(serverSettings.UserUuid));
 }