Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/graphics/MapGenerator.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public: | ||||
int GetProgress(); | int GetProgress(); | ||||
/** | /** | ||||
* Get random map data, according to this format: | * Get random map data, according to this format: | ||||
* http://trac.wildfiregames.com/wiki/Random_Map_Generator_Internals#Dataformat | * http://trac.wildfiregames.com/wiki/Random_Map_Generator_Internals#Dataformat | ||||
* | * | ||||
* @return StructuredClone containing map data | * @return StructuredClone containing map data | ||||
*/ | */ | ||||
shared_ptr<ScriptInterface::StructuredClone> GetResults(); | ScriptInterface::StructuredClone GetResults(); | ||||
private: | private: | ||||
CMapGeneratorWorker* m_Worker; | CMapGeneratorWorker* m_Worker; | ||||
}; | }; | ||||
/** | /** | ||||
* Random map generator worker thread. | * Random map generator worker thread. | ||||
Show All 26 Lines | public: | ||||
int GetProgress(); | int GetProgress(); | ||||
/** | /** | ||||
* Get random map data, according to this format: | * Get random map data, according to this format: | ||||
* http://trac.wildfiregames.com/wiki/Random_Map_Generator_Internals#Dataformat | * http://trac.wildfiregames.com/wiki/Random_Map_Generator_Internals#Dataformat | ||||
* | * | ||||
* @return StructuredClone containing map data | * @return StructuredClone containing map data | ||||
*/ | */ | ||||
shared_ptr<ScriptInterface::StructuredClone> GetResults(); | ScriptInterface::StructuredClone GetResults(); | ||||
/** | /** | ||||
* Set initial seed, callback data. | * Set initial seed, callback data. | ||||
* Expose functions, globals and classes defined in this class relevant to the map and test scripts. | * Expose functions, globals and classes defined in this class relevant to the map and test scripts. | ||||
*/ | */ | ||||
void InitScriptInterface(const u32 seed); | void InitScriptInterface(const u32 seed); | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | private: | ||||
/** | /** | ||||
* Currently loaded script librarynames. | * Currently loaded script librarynames. | ||||
*/ | */ | ||||
std::set<VfsPath> m_LoadedLibraries; | std::set<VfsPath> m_LoadedLibraries; | ||||
/** | /** | ||||
* Result of the mapscript generation including terrain, entities and environment settings. | * Result of the mapscript generation including terrain, entities and environment settings. | ||||
*/ | */ | ||||
shared_ptr<ScriptInterface::StructuredClone> m_MapData; | ScriptInterface::StructuredClone m_MapData; | ||||
/** | /** | ||||
* Deterministic random number generator. | * Deterministic random number generator. | ||||
*/ | */ | ||||
boost::rand48 m_MapGenRNG; | boost::rand48 m_MapGenRNG; | ||||
/** | /** | ||||
* Current map generation progress. | * Current map generation progress. | ||||
Show All 36 Lines |
Wildfire Games · Phabricator