GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
CommonInstructionsExtension.h
1 /*
2  * GDevelop JS Platform
3  * Copyright 2008-2016 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 #include "GDCore/Extensions/PlatformExtension.h"
8 
9 namespace gd {
10 class Variable;
11 class VariablesContainer;
12 }
13 namespace gdjs {
14 
20 class CommonInstructionsExtension : public gd::PlatformExtension {
21  public:
23  virtual ~CommonInstructionsExtension(){};
24 private:
25  static void GenerateLocalVariablesInitializationCode(
26  gd::VariablesContainer &variablesContainer,
27  gd::EventsCodeGenerator &codeGenerator, gd::String &code);
28  static void GenerateLocalVariableInitializationCode(gd::Variable &variable,
29  gd::String &code,
30  std::size_t depth = 0);
31 };
32 
33 } // namespace gdjs
Built-in extension providing SpriteObject objects.
Definition: CommonInstructionsExtension.h:20