Ejemplo n.º 1
0
 public Dictionary<string, SavedSettlementInfo> GetSettlementsInfo()
 {
     Dictionary<string, SavedSettlementInfo> returnValue = new Dictionary<string, SavedSettlementInfo>();
     foreach (SavedObject1 o in _objects)
     {
         if (SettlementInfoLookup.SettlementList.ContainsKey(o.Index))
         {
             SettlementInfo i = SettlementInfoLookup.SettlementList[o.Index];
             SavedSettlementInfo i2 = new SavedSettlementInfo(i, o.Count, o.HasBeenDiscovered == 1, false);
             returnValue.Add(i.ID, i2);
         }
     }
     return returnValue;
 }
Ejemplo n.º 2
0
        public Dictionary <string, SavedSettlementInfo> GetSettlementsInfo()
        {
            Dictionary <string, SavedSettlementInfo> returnValue = new Dictionary <string, SavedSettlementInfo>();

            foreach (SavedObject1 o in _objects)
            {
                if (SettlementInfoLookup.SettlementList.ContainsKey(o.NameHash))
                {
                    SettlementInfo      i  = SettlementInfoLookup.SettlementList[o.NameHash];
                    SavedSettlementInfo i2 = new SavedSettlementInfo(i, o.Count, o.HasBeenDiscovered == 1, o.HasBeenOvertaken == 1);
                    returnValue.Add(i.ID, i2);
                }
            }
            return(returnValue);
        }