Esempio n. 1
0
 /// <summary>
 /// Adds teleport targets into menu
 /// </summary>
 /// <param name="parent">Parent menu</param>
 /// <param name="targets">Teleport targets</param>
 private static void AddTeleportTargetsToMenu(Menu parent, TeleportTarget[] targets)
 {
     foreach (TeleportTarget tt in targets)
     {
         MenuItem mi = AddMenuItem(parent, tt.Name, false, false, null, Feature.Location.LocationTeleporter.Target, null, null, tt);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a teleport category
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="targets">Targets</param>
 public TeleportCategory(MString name, TeleportTarget[] targets)
 {
     Name = name;
     Targets = targets;
 }