Ejemplo n.º 1
0
 //public static void AddTownIconList(List<Vector3> posList)
 //{
 //    if (posList != null && posList.Count > 0)
 //    {
 //        foreach (Vector3 pos in posList)
 //        {
 //            NpcTownLabel tl = new NpcTownLabel(pos);
 //        }
 //    }
 //}
 //public static void AddTownIconList(Vector3[] posList)
 //{
 //    if (posList != null && posList.Length > 0)
 //    {
 //        foreach (Vector3 pos in posList)
 //        {
 //            NpcTownLabel tl = new NpcTownLabel(pos);
 //        }
 //    }
 //}
 public static void AddTownIcon(VArtifactTown vat)
 {
     if (vat != null)
     {
         if (vat.isEmpty)
         {
             return;
         }
         if (!NpcTownLabel.ContainsIcon(vat.TransPos))
         {
             UnknownLabel.Remove(vat.TransPos);
             NpcTownLabel tl = new NpcTownLabel(vat);
             if (!npcTownLabel.ContainsKey(tl.pos))
             {
                 npcTownLabel.Add(tl.pos, tl);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public static void AddNativeIcon(VArtifactTown vat)
 {
     if (vat != null)
     {
         if (vat.isEmpty)
         {
             return;
         }
         if (!NativeLabel.ContainsIcon(vat.TransPos))
         {
             UnknownLabel.Remove(vat.TransPos);
             NativeLabel nl = new NativeLabel(vat);
             if (!nativeCampLabel.ContainsKey(nl.pos))
             {
                 nativeCampLabel.Add(nl.pos, nl);
             }
         }
     }
 }
Ejemplo n.º 3
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);
             }
         }
     }
 }
Ejemplo n.º 4
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);
             }
         }
     }
 }