示例#1
0
 public ArchetypeSelectionMenu(ArchetypeSelectionHandler callback, uint raceTextId, uint clssTextId)
     : base(raceTextId)
 {
     foreach (var clss in ArchetypeMgr.BaseClasses)
     {
         if (clss != null)
         {
             AddItem(new GossipMenuItem(clss.Id.ToString(), new ClassSelectionMenu(clss, callback, clssTextId)));
         }
     }
 }
 public ArchetypeSelectionMenu(ArchetypeSelectionHandler callback, uint raceTextId, uint clssTextId)
     : base(raceTextId)
 {
     foreach (var clss in ArchetypeMgr.BaseClasses)
     {
         if (clss != null)
         {
             AddItem(new GossipMenuItem(clss.Id.ToString(), new ClassSelectionMenu(clss, callback, clssTextId)));
         }
     }
 }
示例#3
0
 public ArchetypeSelectionMenu(ArchetypeSelectionHandler callback, uint raceTextId, uint clssTextId)
     : base(raceTextId)
 {
     foreach (BaseClass baseClass in ArchetypeMgr.BaseClasses)
     {
         if (baseClass != null)
         {
             this.AddItem((GossipMenuItemBase) new GossipMenuItem(baseClass.Id.ToString(),
                                                                  (GossipMenu) new ClassSelectionMenu(baseClass, callback, clssTextId)));
         }
     }
 }
 public ClassSelectionMenu(BaseClass clss, ArchetypeSelectionHandler handler, uint textId)
     : base(textId)
 {
     Class = clss;
     foreach (var archetype in ArchetypeMgr.Archetypes[(int)clss.Id])
     {
         if (archetype != null)
         {
             var arche = archetype;	// local reference
             AddItem(new GossipMenuItem(archetype.ToString(), convo => handler(convo, arche)));
         }
     }
 }
示例#5
0
 public ClassSelectionMenu(BaseClass clss, ArchetypeSelectionHandler handler, uint textId)
     : base(textId)
 {
     Class = clss;
     foreach (var archetype in ArchetypeMgr.Archetypes[(int)clss.Id])
     {
         if (archetype != null)
         {
             var arche = archetype;                      // local reference
             AddItem(new GossipMenuItem(archetype.ToString(), convo => handler(convo, arche)));
         }
     }
 }
示例#6
0
 public ClassSelectionMenu(BaseClass clss, ArchetypeSelectionHandler handler, uint textId)
     : base(textId)
 {
     this.Class = clss;
     foreach (Archetype archetype in ArchetypeMgr.Archetypes[(int)clss.Id])
     {
         if (archetype != null)
         {
             Archetype arche = archetype;
             this.AddItem((GossipMenuItemBase) new GossipMenuItem(archetype.ToString(),
                                                                  (GossipActionHandler)(convo => handler(convo, arche))));
         }
     }
 }
 public ArchetypeSelectionMenu(ArchetypeSelectionHandler callback) :
     this(callback, RaceTextEntry.GossipId, ClassTextEntry.GossipId)
 {
 }
示例#8
0
 public ArchetypeSelectionMenu(ArchetypeSelectionHandler callback)
     : this(callback, ArchetypeSelectionMenu.RaceTextEntry.GossipId,
            ArchetypeSelectionMenu.ClassTextEntry.GossipId)
 {
 }