Go to the documentation of this file.
27 std::unique_ptr<char,
void(*)(
void*)> dup(strdup(
filename), free);
29 c = strrchr(dup.get(),
'.');
35 c = strrchr(dup.get(),
'.');
43 std::string faceset(
c);
45 c = strrchr(dup.get(),
'/');
53 auto &items = licenses[faceset];
62 c = strchr(
line,
' ');
71 items.push_back(std::make_pair(
line,
c));
78 return search->second;
84 auto dot = face.find(
'.');
85 if (dot == std::string::npos)
89 return face.substr(0, dot);
Install Bug reporting Credits so make sure you have version or later There are files involved in the automatic convert convertall and filelist py GuildList has the list of guilds for the server GuildLocations is what is used by the install script for setting up the maps It has columns in the first is the name of the no spaces The second is the region of the the third is the destination folder for the the fourth is the exit the fifth and sixth are the x and y coords within the exit the seventh eighth and ninth are the exit location for the storage hall If field seven is then it uses the same exit map as for the guild hall itself filelist py has a list of which files to process for each guild hall convert py takes all the files in filelist py and customises them to the specific guild then outputs them into a in the same order that they are listed in GuildLocations convertall py reads the lines from GuildLocations and runs line by line
size_t bufferreader_current_line(BufferReader *br)
static std::string licenseNameFromFaceName(const std::string &face)
void LOG(LogLevel logLevel, const char *format,...)
static event_registration c
std::map< std::string, std::vector< LicenseItem > > LicenseItems
LicenseItems getForFace(const std::string &face)
virtual ~LicenseManager()
void readLicense(BufferReader *reader, const char *filename)
std::map< std::string, LicenseItems > m_licenses
static void parseLicenseFile(BufferReader *reader, const char *filename, std::vector< LicenseItem > &items)
char * bufferreader_next_line(BufferReader *br)