20 #ifndef INC_C4Scenario
21 #define INC_C4Scenario
29 C4SVal(int32_t
std=0, int32_t rnd=0, int32_t min=0, int32_t max=100);
34 void Set(int32_t
std=0, int32_t rnd=0, int32_t min=0, int32_t max=100);
45 #define C4S_SECTIONLOAD 1
48 #define C4S_SAVE_LANDSCAPE 1
49 #define C4S_SAVE_OBJECTS 2
50 #define C4S_KEEP_EFFECTS 4
51 #define C4S_REINIT_SCENARIO 8
95 void SetModules(
const char *szList,
const char *szRelativeToPath=
nullptr,
const char *szRelativeToPath2=
nullptr);
192 void GetMapSize(int32_t &rWdt, int32_t &rHgt, int32_t iPlayerNum);
244 bool Load(
C4Group &hGroup,
bool fLoadSection =
false,
bool suppress_errors =
false);
245 bool Save(
C4Group &hGroup,
bool fSaveSection=
false);
269 bool ScenarioLoad(
const char *szFilename,
bool is_temp_file);
const int32_t C4S_MaxDefinitions
const char * C4ScenSect_Main
const int32_t C4S_MaxMapPlayerExtend
void CompileFunc(StdCompiler *pComp)
void SetModules(const char *szList, const char *szRelativeToPath=nullptr, const char *szRelativeToPath2=nullptr)
void CompileFunc(StdCompiler *pComp)
std::list< const char * > GetModulesAsList() const
bool GetModules(StdStrBuf *psOutModules) const
void CompileFunc(StdCompiler *pComp)
void CompileFunc(StdCompiler *pComp, bool fSection)
void CompileFunc(StdCompiler *pComp, bool fSection)
std::string MissionAccess
void CompileFunc(StdCompiler *pComp)
void GetMapSize(int32_t &rWdt, int32_t &rHgt, int32_t iPlayerNum)
bool operator==(const C4SPlrStart &rhs)
void CompileFunc(StdCompiler *pComp)
bool EquipmentEqual(C4SPlrStart &rhs)
bool LandscapeInsertThrust
void Set(int32_t std=0, int32_t rnd=0, int32_t min=0, int32_t max=100)
C4SVal(int32_t std=0, int32_t rnd=0, int32_t min=0, int32_t max=100)
void CompileFunc(StdCompiler *pComp)
bool operator==(const C4SVal &rhs) const
void SetConstant(int32_t val)
void CompileFunc(StdCompiler *pComp)
C4SEnvironment Environment
bool Save(C4Group &hGroup, bool fSaveSection=false)
void CompileFunc(StdCompiler *pComp, bool fSection)
C4SPlrStart PlrStart[C4S_MaxPlayer]
C4SDefinitions Definitions
bool Load(C4Group &hGroup, bool fLoadSection=false, bool suppress_errors=false)
bool ScenarioLoad(const char *szFilename, bool is_temp_file)
bool EnsureTempStore(bool fExtractLandscape, bool fExtractObjects)
class C4ScenarioObjectsScriptHost * pObjectScripts
C4ScenarioSection * pNext
StdCopyStrBuf temp_filename
C4Group * GetGroupfile(C4Group &rGrp)
C4ScenarioSection(const char *szName)