Example #1
0
 private static void Generate_Sublocation_Pages(string path, List <Character> _characters, List <Itemz> _items, List <Location> _locations, List <Ship> _ships, List <TradeXref> _tradexrefs)
 {
     foreach (Location _myloc in _locations.FindAll(x => x._LocId >= 59000 && x._LocId <= 78999))
     {
         //
         if (_myloc._LocId != 0)
         {
             if (_myloc._Loc_Type.Equals("region"))
             {
                 //Write_Region_HTML_File(_myloc);
             }
             else
             {
                 if (!_myloc._Loc_Type.Equals("region"))
                 {
                     HTML_Loc.Write_Loc_HTML_File(_myloc, path, _characters, _items, _locations, _players, _ships, _skills, _storms, _tradexrefs);
                 }
                 else
                 {
                     Console.WriteLine(_myloc._LocId + " | " + _myloc._LocId_Conv + "|" + _myloc._Name + "|" + _myloc._Loc_Type + "|" + _myloc._First_Line);
                 }
             }
         }
     }
 }
Example #2
0
 private static void Generate_Province_Pages(string path, List <Character> _characters, List <Itemz> _items, List <Location> _locations, List <Ship> _ships, List <TradeXref> _TradeXref_Unsorted)
 {
     foreach (Location _myloc in _locations.FindAll(x => x._LocId >= 10000 && x._LocId <= 49999))
     {
         HTML_Loc.Write_Loc_HTML_File(_myloc, path, _characters, _items, _locations, _players, _ships, _skills, _storms, _TradeXref_Unsorted);
     }
 }
Example #3
0
 private static void Generate_Structure_Pages(string path, List <TradeXref> _tradexrefs)
 {
     foreach (Location _myloc in _locations.FindAll(x => x._LocId > 0 && x._LocId <= 9999))
     {
         //
         if (_myloc._LocId != 0)
         {
             HTML_Loc.Write_Loc_HTML_File(_myloc, path, _characters, _items, _locations, _players, _ships, _skills, _storms, _tradexrefs);
         }
     }
 }
Example #4
0
 private static void Generate_City_Pages(string path, List <Character> _characters, List <Itemz> _items, List <Location> _locations, List <Ship> _ships, List <TradeXref> _tradexrefs)
 {
     foreach (Location _myloc in _locations.FindAll(x => x._LocId >= 56760 && x._LocId <= 58759))
     {
         //
         if (_myloc._LocId != 0)
         {
             if (_myloc._Loc_Type.Equals("sewer") || _myloc._Loc_Type.Equals("island"))
             {
                 //not sure what to do yet
             }
             else
             {
                 if (_myloc._Loc_Type.Equals("region"))
                 {
                     //Write_Region_HTML_File(_myloc);
                 }
                 else
                 {
                     if (_myloc._SL_Capacity.CompareTo(0) > 0 || _myloc._SL_Defense.CompareTo(0) > 0 || _myloc._SL_Effort_Required.CompareTo(0) > 0)
                     {
                         //Write_Subloc_HTML_File(_myloc);
                     }
                     else
                     {
                         if (!_myloc._Loc_Type.Equals("region"))
                         {
                             HTML_Loc.Write_Loc_HTML_File(_myloc, path, _characters, _items, _locations, _players, _ships, _skills, _storms, _tradexrefs);
                         }
                         else
                         {
                             Console.WriteLine(_myloc._LocId + " | " + _myloc._LocId_Conv + "|" + _myloc._Name + "|" + _myloc._Loc_Type + "|" + _myloc._First_Line);
                         }
                     }
                 }
             }
         }
     }
 }