Batch #912 by ragnarok-clanker: no function's compiled code changes; checked with 4 compiled unit(s), including every includer of Source/Contents/Jobs/JobNames.h.
31 lines
739 B
C++
31 lines
739 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_JOBS_JOBNAMES_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_JOBS_JOBNAMES_H
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
class LuaScript;
|
|
|
|
struct JobNameInitialization {
|
|
LuaScript& playerScript;
|
|
LuaScript& otherScript;
|
|
std::vector<const char*>& sexLabels;
|
|
std::vector<int>& levels20;
|
|
std::vector<int>& useLevels;
|
|
std::vector<int>& otherLevels;
|
|
std::vector<int>& homunculusLevels;
|
|
};
|
|
|
|
struct JobNames {
|
|
std::vector<const char*>& names;
|
|
std::map<unsigned, const char*>& female;
|
|
std::map<unsigned, const char*>& male;
|
|
const int& currentSex;
|
|
int& cachedSex;
|
|
|
|
static unsigned BaseJob(unsigned job);
|
|
const char* Lookup(unsigned job, int sex);
|
|
void Initialize(JobNameInitialization& context);
|
|
};
|
|
|
|
#endif
|