#include <C4Scenario.h>
Public Member Functions | |
| C4ScenarioSection (const char *szName) | |
| ~C4ScenarioSection () | |
| bool | ScenarioLoad (const char *szFilename, bool is_temp_file) |
| C4Group * | GetGroupfile (C4Group &rGrp) |
| bool | EnsureTempStore (bool fExtractLandscape, bool fExtractObjects) |
Public Attributes | |
| StdCopyStrBuf | name |
| StdCopyStrBuf | temp_filename |
| StdCopyStrBuf | filename |
| bool | fModified |
| class C4ScenarioObjectsScriptHost * | pObjectScripts |
| C4ScenarioSection * | pNext |
Definition at line 253 of file C4Scenario.h.
| C4ScenarioSection::C4ScenarioSection | ( | const char * | szName | ) |
Definition at line 27 of file C4ScenarioSection.cpp.
References StdStrBuf::Copy(), fModified, Game, name, pNext, pObjectScripts, and C4Game::pScenarioSections.
| C4ScenarioSection::~C4ScenarioSection | ( | ) |
Definition at line 39 of file C4ScenarioSection.cpp.
References EraseItem(), StdStrBuf::getData(), pNext, and temp_filename.
| bool C4ScenarioSection::EnsureTempStore | ( | bool | fExtractLandscape, |
| bool | fExtractObjects | ||
| ) |
Definition at line 116 of file C4ScenarioSection.cpp.
References _MAX_FNAME_LEN, C4Config::AtTempPath(), C4FLS_Section, C4FLS_SectionLandscape, C4FLS_SectionObjects, C4Group::Close(), Config, StdStrBuf::Copy(), CreatePath(), C4Group::Delete(), EraseItem(), C4Group::ExtractEntry(), filename, C4Group::FindNextEntry(), Game, StdStrBuf::getData(), GetFilename(), MakeTempFilename(), name, C4Group::Open(), C4Group::ResetSearch(), C4Game::ScenarioFile, temp_filename, and WildcardMatch().
Referenced by C4Game::LoadScenarioSection(), and ScenarioLoad().
Definition at line 96 of file C4ScenarioSection.cpp.
References C4ScenSect_Main, filename, Game, StdStrBuf::getData(), name, C4Group::Open(), C4Group::OpenAsChild(), C4Game::ScenarioFile, SEqualNoCase(), and temp_filename.
Referenced by C4Game::LoadScenarioSection(), and ScenarioLoad().
| bool C4ScenarioSection::ScenarioLoad | ( | const char * | szFilename, |
| bool | is_temp_file | ||
| ) |
Definition at line 56 of file C4ScenarioSection.cpp.
References C4CFN_ScenarioObjectsScript, C4ScenSect_Main, Config, StdStrBuf::Copy(), EnsureTempStore(), filename, C4Group::FindEntry(), Game, C4Config::General, StdStrBuf::getData(), GetGroupfile(), C4Group::IsPacked(), C4ConfigGeneral::LanguageEx, C4ScriptHost::Load(), name, pObjectScripts, C4Game::pScenarioObjectsScript, C4ScriptHost::Reg2List(), C4Game::ScenarioFile, C4Game::ScenarioLangStringTable, ScriptEngine, SEqualNoCase(), and temp_filename.
Referenced by C4Game::CreateSectionFromTempFile(), and C4Game::LoadScenarioComponents().
| StdCopyStrBuf C4ScenarioSection::filename |
Definition at line 262 of file C4Scenario.h.
Referenced by EnsureTempStore(), GetGroupfile(), and ScenarioLoad().
| bool C4ScenarioSection::fModified |
Definition at line 263 of file C4Scenario.h.
Referenced by C4ScenarioSection(), and C4Game::LoadScenarioSection().
| StdCopyStrBuf C4ScenarioSection::name |
Definition at line 260 of file C4Scenario.h.
Referenced by C4ScenarioSection(), C4Game::CreateSectionFromTempFile(), EnsureTempStore(), GetGroupfile(), C4Game::LoadScenarioSection(), and ScenarioLoad().
| C4ScenarioSection* C4ScenarioSection::pNext |
Definition at line 266 of file C4Scenario.h.
Referenced by C4ScenarioSection(), C4Game::CreateSectionFromTempFile(), C4Game::LoadScenarioSection(), and ~C4ScenarioSection().
| class C4ScenarioObjectsScriptHost* C4ScenarioSection::pObjectScripts |
Definition at line 264 of file C4Scenario.h.
Referenced by C4ScenarioSection(), C4Game::CreateSectionFromTempFile(), C4Game::LoadScenarioSection(), and ScenarioLoad().
| StdCopyStrBuf C4ScenarioSection::temp_filename |
Definition at line 261 of file C4Scenario.h.
Referenced by EnsureTempStore(), GetGroupfile(), ScenarioLoad(), and ~C4ScenarioSection().