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 (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))); } } }
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) { }
public ArchetypeSelectionMenu(ArchetypeSelectionHandler callback) : this(callback, ArchetypeSelectionMenu.RaceTextEntry.GossipId, ArchetypeSelectionMenu.ClassTextEntry.GossipId) { }