Don't export describeJobSkills.

develop
Will Rogers 2012-04-03 14:22:46 -04:00
parent 59d7b6faab
commit 7e896277ec
2 changed files with 14 additions and 20 deletions

@ -338,21 +338,6 @@ void DFHack::describeUnit(BasicUnitInfo *info, df::unit *unit,
info->add_burrows(unit->burrows[i]); info->add_burrows(unit->burrows[i]);
} }
void DFHack::describeJobSkills(RepeatedPtrField<JobSkillInfo> *pf)
{
FOR_ENUM_ITEMS(job_skill, skill)
{
auto item = pf->Add();
item->set_id(skill);
item->set_caption(ENUM_ATTR_STR(job_skill, caption, skill));
item->set_caption_noun(ENUM_ATTR_STR(job_skill, caption_noun, skill));
item->set_profession(ENUM_ATTR(job_skill, profession, skill));
item->set_labor(ENUM_ATTR(job_skill, labor, skill));
item->set_type(ENUM_ATTR(job_skill, type, skill));
}
}
static command_result GetVersion(color_ostream &stream, static command_result GetVersion(color_ostream &stream,
const EmptyMessage *, StringMessage *out) const EmptyMessage *, StringMessage *out)
{ {
@ -462,7 +447,20 @@ static command_result ListEnums(color_ostream &stream,
static command_result ListJobSkills(color_ostream &stream, const EmptyMessage *, ListJobSkillsOut *out) static command_result ListJobSkills(color_ostream &stream, const EmptyMessage *, ListJobSkillsOut *out)
{ {
describeJobSkills(out->mutable_value()); auto pf = out->mutable_value();
FOR_ENUM_ITEMS(job_skill, skill)
{
auto item = pf->Add();
item->set_id(skill);
item->set_caption(ENUM_ATTR_STR(job_skill, caption, skill));
item->set_caption_noun(ENUM_ATTR_STR(job_skill, caption_noun, skill));
item->set_profession(ENUM_ATTR(job_skill, profession, skill));
item->set_labor(ENUM_ATTR(job_skill, labor, skill));
item->set_type(ENUM_ATTR(job_skill, type, skill));
}
return CR_OK; return CR_OK;
} }

@ -127,10 +127,6 @@ namespace DFHack
DFHACK_EXPORT void describeUnit(BasicUnitInfo *info, df::unit *unit, DFHACK_EXPORT void describeUnit(BasicUnitInfo *info, df::unit *unit,
const BasicUnitInfoMask *mask = NULL); const BasicUnitInfoMask *mask = NULL);
using dfproto::JobSkillInfo;
DFHACK_EXPORT void describeJobSkills(RepeatedPtrField<JobSkillInfo> *pf);
///// /////
class CoreService : public RPCService { class CoreService : public RPCService {