OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions
CodeGen.cpp File Reference
#include "CodeGenOptions.h"
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <utility>
#include <map>
#include <regex>
#include <string>
#include "Application/Startup/GameStarter.h"
#include "Engine/Data/HouseEnumFunctions.h"
#include "Engine/Components/Random/EngineRandomComponent.h"
#include "Engine/Tables/ItemTable.h"
#include "Engine/Tables/HouseTable.h"
#include "Engine/Events/EventMap.h"
#include "Engine/Random/Random.h"
#include "Engine/Objects/DecorationEnums.h"
#include "Engine/Objects/DecorationList.h"
#include "Engine/Objects/Monsters.h"
#include "Engine/Objects/MonsterEnumFunctions.h"
#include "Engine/Snapshots/TableSerialization.h"
#include "Engine/GameResourceManager.h"
#include "Engine/MapInfo.h"
#include "Engine/EngineFileSystem.h"
#include "Engine/mm7_data.h"
#include "GUI/UI/Houses/TownHall.h"
#include "Library/Lod/LodReader.h"
#include "Library/Serialization/EnumSerialization.h"
#include "Utility/String/Ascii.h"
#include "Utility/String/Format.h"
#include "Utility/Exception.h"
#include "Utility/UnicodeCrt.h"
#include "Utility/String/Transformations.h"
#include "CodeGenEnums.h"
#include "CodeGenMap.h"

Functions

int runItemIdCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
std::string mapIdEnumName (const MapInfo &mapInfo)
 
int runMapIdCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
const MapInfomapInfoByFileName (const MapStats &mapStats, std::string_view fileName)
 
int runBeaconsCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
int runHouseIdCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
MonsterStats loadMonsterStats (GameResourceManager *resourceManager)
 
std::string cleanupMonsterIdEnumName (std::string enumName)
 
int runMonsterIdCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
std::string cleanupMonsterTypeEnumName (std::string enumName)
 
int runMonsterTypeCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
int runBountyHuntCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
int runMusicCodeGen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
int runDecorationsCodegen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
int runSpeechPortraitsCodegen (const CodeGenOptions &options, GameResourceManager *resourceManager)
 
int platformMain (int argc, char **argv)
 

Function Documentation

◆ cleanupMonsterIdEnumName()

std::string cleanupMonsterIdEnumName ( std::string  enumName)

◆ cleanupMonsterTypeEnumName()

std::string cleanupMonsterTypeEnumName ( std::string  enumName)

◆ loadMonsterStats()

MonsterStats loadMonsterStats ( GameResourceManager resourceManager)

◆ mapIdEnumName()

std::string mapIdEnumName ( const MapInfo mapInfo)

◆ mapInfoByFileName()

const MapInfo & mapInfoByFileName ( const MapStats mapStats,
std::string_view  fileName 
)

◆ platformMain()

int platformMain ( int  argc,
char **  argv 
)

Entrypoint for the program that uses the platform lib. Function definition should be provided in user code.

Parameters
argcTotal number of arguments passed.
argvUTF8-encoded program arguments. Note that you're getting UTF8 on ALL platforms, including Windows.
Returns
Program return code.

◆ runBeaconsCodeGen()

int runBeaconsCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runBountyHuntCodeGen()

int runBountyHuntCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runDecorationsCodegen()

int runDecorationsCodegen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runHouseIdCodeGen()

int runHouseIdCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runItemIdCodeGen()

int runItemIdCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runMapIdCodeGen()

int runMapIdCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runMonsterIdCodeGen()

int runMonsterIdCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runMonsterTypeCodeGen()

int runMonsterTypeCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runMusicCodeGen()

int runMusicCodeGen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)

◆ runSpeechPortraitsCodegen()

int runSpeechPortraitsCodegen ( const CodeGenOptions options,
GameResourceManager resourceManager 
)