internal void LoadSpells()
 {
     Stump.ORM.Database database = ServerBase <WorldServer> .Instance.DBAccessor.Database;
     foreach (CharacterSpellRecord current in database.Query <CharacterSpellRecord>(string.Format(CharacterSpellRelator.FetchByOwner, this.Owner.Id), new object[0]))
     {
         CharacterSpell characterSpell = new CharacterSpell(current);
         this.m_spells.Add(characterSpell.Id, characterSpell);
     }
 }
Пример #2
0
 internal void Load()
 {
     Stump.ORM.Database database = ServerBase <WorldServer> .Instance.DBAccessor.Database;
     this.m_spellShortcuts = database.Query <SpellShortcut>(string.Format(SpellShortcutRelator.FetchByOwner, this.Owner.Id), new object[0]).ToDictionary((SpellShortcut x) => x.Slot);
     this.m_itemShortcuts  = database.Query <ItemShortcut>(string.Format(ItemShortcutRelator.FetchByOwner, this.Owner.Id), new object[0]).ToDictionary((ItemShortcut x) => x.Slot);
 }