mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
Start Atlas by closing the root page
Theere is now an `Engine.startAtlas` property that will start Atlas when it's returned from the root page. The `Engine.RestartInAtlas` function is removed.
This commit is contained in:
@@ -34,15 +34,8 @@
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "tools/atlas/GameInterface/GameLoop.h"
|
||||
|
||||
extern void StartAtlas();
|
||||
|
||||
namespace JSI_Main
|
||||
{
|
||||
void StartAtlas()
|
||||
{
|
||||
::StartAtlas();
|
||||
}
|
||||
|
||||
bool AtlasIsAvailable()
|
||||
{
|
||||
return ATLAS_IsAvailable();
|
||||
@@ -120,7 +113,6 @@ std::string CalculateMD5(const std::string& input)
|
||||
|
||||
void RegisterScriptFunctions(const ScriptRequest& rq)
|
||||
{
|
||||
ScriptFunction::Register<&StartAtlas>(rq, "RestartInAtlas");
|
||||
ScriptFunction::Register<&AtlasIsAvailable>(rq, "AtlasIsAvailable");
|
||||
ScriptFunction::Register<&IsAtlasRunning>(rq, "IsAtlasRunning");
|
||||
ScriptFunction::Register<&OpenURL>(rq, "OpenURL");
|
||||
|
||||
Reference in New Issue
Block a user