GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
Public Member Functions | Static Public Member Functions | List of all members
gdjs::JsPlatform Class Reference

GDevelop Javascript Platform. More...

#include <JsPlatform.h>

Inherits gd::Platform.

Public Member Functions

virtual gd::String GetName () const
 
virtual gd::String GetFullName () const
 
virtual gd::String GetSubtitle () const
 
virtual gd::String GetDescription () const
 
virtual gd::String GetIcon () const
 
virtual gd::String GetExtensionCreateFunctionName ()
 The name of the function searched in an extension file to create the extension.
 
void AddNewExtension (const gd::PlatformExtension &extension)
 
virtual void ReloadBuiltinExtensions ()
 (Re)load platform built-in extensions. More...
 

Static Public Member Functions

static JsPlatformGet ()
 
static void DestroySingleton ()
 Destroy the singleton. More...
 

Detailed Description

GDevelop Javascript Platform.

Platform designed to be used to create 2D games based on Javascript.

This is the core class that is exposing to the IDE the features of the platform.
The IDE creates this platform during its startup, thanks to CreateGDPlatform/DestroyGDPlatform.

Member Function Documentation

◆ DestroySingleton()

void gdjs::JsPlatform::DestroySingleton ( )
static

Destroy the singleton.

Note
You do not need usually to call this method.

◆ Get()

JsPlatform & gdjs::JsPlatform::Get ( )
static

Get access to the JsPlatform instance (JsPlatform is a singleton).

◆ ReloadBuiltinExtensions()

void gdjs::JsPlatform::ReloadBuiltinExtensions ( )
virtual

(Re)load platform built-in extensions.

Note
Can be useful if, for example, the user changed the language of the editor.

The documentation for this class was generated from the following files: