📄 spelldb.cpp
字号:
#include "spelldb.h"
/*
SpellVisualeffects.dbc
column 1 = id, int
column 2 = spell name, string
column 3 = model name, string
column 4 = number between 0 and 11, int
column 5 = number 0 or 1, 1 entry is 50?, int.. possibly boolean.
Column 3, ignore entries starting with "zzOLD__" ?
Column 4, wtf are .mdl files? they're from warcraft 3?
col 5 and 6? figure out what they're for.
Column5 is either Spell Type, or Spell slot or something similar
*/
SpellEffectsDB::Record SpellEffectsDB::getByName(const wxString name)
{
for(Iterator i=begin(); i!=end(); ++i)
{
if (name.IsSameAs(i->getString(EffectName),false) == true)
return (*i);
}
throw NotFound();
}
SpellEffectsDB::Record SpellEffectsDB::getById(unsigned int id)
{
for(Iterator i=begin(); i!=end(); ++i)
{
if (i->getUInt(ID)==id)
return (*i);
}
throw NotFound();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -