World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
8 #define MAX_LOC_STRINGS 677
9 extern std::vector<char *>
Tokenize(
char *
input,
const char separator);
23 va_start(args_ptr,
index);
51 for (
int i = 0; i < MAX_LOC_STRINGS; ++i) {
52 char *test_string = strtok(NULL,
"\r") + 1;
56 c = *(
unsigned char *)test_string;
61 c = *(test_string + temp_str_len + 1);
65 tmp_pos = test_string + temp_str_len;
66 if (*tmp_pos == 0) string_end =
true;
69 if (temp_str_len == 0) {
76 test_string = tmp_pos + 1;
77 }
while (step <= 2 && !string_end);
286 for (
int i = 0; i < 37; ++i) {
287 char *test_string = strtok(NULL,
"\r") + 1;
289 auto tokens =
Tokenize(test_string,
'\t');
290 Assert(tokens.size() >= 6,
"Invalid number of tokens");
348 for (
int i = 0; i < 36; ++i) {
349 char *test_string = strtok(NULL,
"\r") + 1;
350 auto tokens =
Tokenize(test_string,
'\t');
351 Assert(tokens.size() == 3,
"Invalid number of tokens");
429 for (
int i = 0; i < 26; ++i) {
430 char *test_string = strtok(NULL,
"\r") + 1;
431 auto tokens =
Tokenize(test_string,
'\t');
432 Assert(tokens.size() == 2,
"Invalid number of tokens");
char * pPlayerConditionAttributeDescription
const char * GetString(unsigned int index) const
void InitializeSkillNames()
char * RemoveQuotes(char *str)
const char * skill_descriptions_grand[38]
std::vector< char * > Tokenize(char *input, const char separator)
void InitializeSpellSchoolNames()
char * pMindResistanceAttributeDescription
void InitializeAttributeNames()
const char * spell_names[44]
void * LoadCompressedTexture(const String &pContainer, size_t *data_size=nullptr)
const char * attribute_names[7]
const char * skill_names[38]
Localization * localization
char * attribute_desc_raw
const char * mm6_item_categories[14]
char * pSpellPointsAttributeDescription
GLenum GLenum GLenum input
const char * moon_phase_names[5]
char * pFastSpellAttributeDescription
const char * class_names[36]
char * pArmourClassAttributeDescription
const char * npc_profession_names[59]
GLenum GLuint GLenum GLsizei const GLchar * buf
const char * attribute_descriptions[7]
const char * day_names[7]
char * pMissleDamageAttributeDescription
char * pHealthPointsAttributeDescription
int sprintfex_internal(char *str)
char * pPlayerExperienceAttributeDescription
void InitializeMonthNames()
const char * skill_descriptions[38]
void InitializeCharacterConditionNames()
char * pMissleBonusAttributeDescription
const char * skill_descriptions_normal[38]
char * pAttackDamageAttributeDescription
const char * class_desciptions[36]
const char * skill_descriptions_expert[38]
const char * month_names[12]
char * pBodyResistanceAttributeDescription
void InitializeMm6ItemCategories()
LODFile_IconsBitmaps * pEvents_LOD
const char * character_conditions[19]
void InitializeDayNames()
String FormatString(unsigned int index,...) const
char * pSkillPointsAttributeDescription
char * pPlayerAgeAttributeDescription
char * pAttackBonusAttributeDescription
char * pPlayerLevelAttributeDescription
char * pWaterResistanceAttributeDescription
char * pFireResistanceAttributeDescription
const char ** localization_strings
char * pAirResistanceAttributeDescription
void InitializeMoonPhaseNames()
const char * spell_school_names[9]
char * pEarthResistanceAttributeDescription
const char * skill_descriptions_master[38]
void InitializeNpcProfessionNames()
void InitializeSpellNames()
void InitializeClassNames()