![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|


Go to the source code of this file.
Namespaces | |
| namespace | Script |
| Abstraction around a SpiderMonkey JSContext. | |
Typedefs | |
| using | InputHandlers = std::queue< Input::Handler< Input::Reaction(&)(const SDL_Event &)> > |
Enumerations | |
| enum | InitFlags { INIT_HAVE_VMODE = 1 , INIT_NO_GUI = 2 , INIT_MODS = 8 , INIT_MODS_PUBLIC = 16 } |
Functions | |
| void | EarlyInit () |
| initialize global modules that are be needed before Init. More... | |
| void | EndGame () |
| const std::vector< CStr > & | GetMods (const CmdLineArgs &args, int flags) |
| void | MountMods (const Paths &paths, const std::vector< CStr > &mods) |
| Mounts all files of the given mods in the global VFS. More... | |
| void | InitVfs (const CmdLineArgs &args) |
| bool | Init (const CmdLineArgs &args, int flags) |
| Returns true if successful, false if Init is aborted early (for instance if mods changed, or if we are using -dumpSchema). More... | |
| std::unique_ptr< InputHandlers > | MakeInputHandlers () |
| std::unique_ptr< InputHandlers > | InitGraphics (const CmdLineArgs &args, int flags, const std::vector< CStr > &installedMods, Script::Context &scriptContext, Script::Interface &scriptInterface) |
ShutdownNetworkAndUI has to be called later. More... | |
| bool | InitNonVisual (const CmdLineArgs &args) |
ShutdownNetworkAndUI has to be called later. More... | |
| void | ShutdownNetworkAndUI () |
Has to be called before ShutdownConfigAndSubsequent. More... | |
| void | ShutdownConfigAndSubsequent () |
| void | CancelLoad (const CStrW &message) |
| bool | InDevelopmentCopy () |
| using InputHandlers = std::queue<Input::Handler<Input::Reaction(&)(const SDL_Event&)> > |
| enum InitFlags |
| void CancelLoad | ( | const CStrW & | message | ) |
| void EarlyInit | ( | ) |
initialize global modules that are be needed before Init.
must be called from the very beginning of main.
| void EndGame | ( | ) |
| const std::vector< CStr > & GetMods | ( | const CmdLineArgs & | args, |
| int | flags | ||
| ) |
| bool InDevelopmentCopy | ( | ) |
| bool Init | ( | const CmdLineArgs & | args, |
| int | flags | ||
| ) |
Returns true if successful, false if Init is aborted early (for instance if mods changed, or if we are using -dumpSchema).
ShutdownConfigAndSubsequent has to be called later.
| std::unique_ptr< InputHandlers > InitGraphics | ( | const CmdLineArgs & | args, |
| int | flags, | ||
| const std::vector< CStr > & | installedMods, | ||
| Script::Context & | scriptContext, | ||
| Script::Interface & | scriptInterface | ||
| ) |
ShutdownNetworkAndUI has to be called later.
| bool InitNonVisual | ( | const CmdLineArgs & | args | ) |
ShutdownNetworkAndUI has to be called later.
| void InitVfs | ( | const CmdLineArgs & | args | ) |
| std::unique_ptr< InputHandlers > MakeInputHandlers | ( | ) |
| void MountMods | ( | const Paths & | paths, |
| const std::vector< CStr > & | mods | ||
| ) |
Mounts all files of the given mods in the global VFS.
Make sure to call CacheEnabledModVersions after every call to this.
| void ShutdownConfigAndSubsequent | ( | ) |
| void ShutdownNetworkAndUI | ( | ) |
Has to be called before ShutdownConfigAndSubsequent.