예제 #1
0
 public static void AddDestroyedTownIcon(VArtifactTown vat)
 {
     if (vat != null)
     {
         if (vat.isEmpty)
         {
             return;
         }
         if (!DestroyedLabel.ContainsIcon(vat.TransPos))
         {
             UnknownLabel.Remove(vat.TransPos);
             DestroyedLabel dl = new DestroyedLabel(vat);
             if (!destroyedTownLabel.ContainsKey(dl.pos))
             {
                 destroyedTownLabel.Add(dl.pos, dl);
             }
         }
     }
 }
예제 #2
0
 public static void DestroyTownIcon(VArtifactTown vat)
 {
     if (vat != null)
     {
         if (vat.type == VArtifactType.NpcTown)
         {
             npcTownLabel.Remove(vat.TransPos);
         }
         else
         {
             nativeCampLabel.Remove(vat.TransPos);
         }
         TownLabel.Remove(vat.TransPos);
         if (!DestroyedLabel.ContainsIcon(vat.TransPos))
         {
             UnknownLabel.Remove(vat.TransPos);
             DestroyedLabel dl = new DestroyedLabel(vat);
             if (!destroyedTownLabel.ContainsKey(dl.pos))
             {
                 destroyedTownLabel.Add(dl.pos, dl);
             }
         }
     }
 }