Пример #1
0
 public static void Init()
 {
     syncWorkers = SyncWorkerDictionaryTree.Merge(
         SyncDictMisc.syncWorkers,
         SyncDictRimWorld.syncWorkers,
         SyncDictDlc.syncWorkers,
         SyncDictMultiplayer.syncWorkers
         );
 }
Пример #2
0
        public static SyncWorkerDictionaryTree Merge(params SyncWorkerDictionaryTree[] trees)
        {
            var tree = new SyncWorkerDictionaryTree();

            foreach (var t in trees)
            {
                tree.explicitEntries.AddRange(t.explicitEntries);
                tree.implicitEntries.AddRange(t.implicitEntries);
                tree.interfaceEntries.AddRange(t.interfaceEntries);
            }

            return(tree);
        }