Пример #1
0
 protected SpawnEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine)
 {
     Editor     = editor;
     SpawnPoint = spawnPoint;
     Figurine   = figurine;
     KeepOpen   = true;
 }
Пример #2
0
 protected SpawnEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine)
 {
     this.Editor     = editor;
     this.SpawnPoint = spawnPoint;
     this.Figurine   = figurine;
     this.KeepOpen   = true;
 }
Пример #3
0
 public SpawnPointEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine)
     : base(editor, spawnPoint, figurine)
 {
     this.AddItem((GossipMenuItemBase) new LocalizedGossipMenuItem(
                      (GossipActionHandler)(convo => this.MoveTo(convo.Character)),
                      RealmLangKey.EditorSpawnPointMenuMoveOverHere, new object[0]));
     this.AddQuitMenuItem(RealmLangKey.Done);
 }
Пример #4
0
 public SpawnPointEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine)
     : base(editor, spawnPoint, figurine)
 {
     AddItem(new LocalizedGossipMenuItem(
                 convo => MoveTo(convo.Character),
                 RealmLangKey.EditorSpawnPointMenuMoveOverHere));
     AddQuitMenuItem(RealmLangKey.Done);
 }
Пример #5
0
        /// <summary>Called periodically on editing Characters</summary>
        private void UpdateCallback(WorldObject obj)
        {
            Character chr = (Character)obj;

            if (obj.Map != Map || !obj.IsInWorld)
            {
                Leave(chr);
            }
            else
            {
                EditorArchitectInfo architectInfo = MapEditorMgr.GetOrCreateArchitectInfo(chr);
                EditorFigurine      target        = chr.Target as EditorFigurine;
                if (architectInfo.CurrentTarget == target)
                {
                    return;
                }
                EditorFigurine editorFigurine = target;
                architectInfo.CurrentTarget = editorFigurine;
            }
        }
Пример #6
0
 public WaypointEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine)
     : base(editor, spawnPoint, figurine)
 {
 }