Go to the documentation of this file.
28 int text = 0, nrofmsg = 0;
40 while (cp >
buf && (cp[-1] ==
' ' || cp[-1] ==
'\t'))
47 if (
text && strncmp(
buf,
"ENDMSG", 6) == 0) {
49 LOG(
llevDebug,
"Warning: this string exceeded max book buf size:\n");
53 if (
tmp->identifier[0] !=
'\n' &&
tmp->title == NULL) {
70 }
else if (strcmp(
buf,
"TEXT") == 0) {
72 }
else if (strncmp(
buf,
"CHANCE ", 7) == 0) {
73 tmp->chance = atoi(
buf + 7);
74 }
else if (strncmp(
buf,
"TITLE ", 6) == 0) {
76 }
else if (strncmp(
buf,
"QUEST ", 6) == 0) {
78 }
else if (strncmp(
buf,
"FACE ", 5) == 0) {
84 }
else if (strncmp(
buf,
"MSG", 3) == 0) {
96 if (!
tmp->identifier) {
sstring add_string(const char *str)
AssetsTracker * m_tracker
MessageLoader(Messages *messages, AssetsTracker *tracker)
static char msgbuf[HUGE_BUF]
char * bufferreader_next_line(BufferReader *br)
size_t bufferreader_current_line(BufferReader *br)
const Face * find_face(const char *name)
T * define(const Key &name, T *asset)
void fatal(enum fatal_error err)
virtual void assetDefined(const archetype *asset, const std::string &filename)
int buf_overflow(const char *buf1, const char *buf2, size_t bufsize)
void LOG(LogLevel logLevel, const char *format,...)
virtual void load(BufferReader *reader, const std::string &filename) override