GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Project.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2016 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 
7 #ifndef GDCORE_PROJECT_H
8 #define GDCORE_PROJECT_H
9 #include <memory>
10 #include <vector>
11 
12 #include "GDCore/Project/ExtensionProperties.h"
13 #include "GDCore/Project/LoadingScreen.h"
14 #include "GDCore/Project/ObjectGroupsContainer.h"
15 #include "GDCore/Project/ObjectsContainer.h"
16 #include "GDCore/Project/PlatformSpecificAssets.h"
17 #include "GDCore/Project/ResourcesManager.h"
18 #include "GDCore/Project/VariablesContainer.h"
19 #include "GDCore/Project/Watermark.h"
20 #include "GDCore/String.h"
21 namespace gd {
22 class Platform;
23 class Layout;
24 class ExternalEvents;
25 class ResourcesManager;
26 class ExternalLayout;
27 class EventsFunctionsExtension;
28 class EventsBasedObject;
29 class EventsBasedBehavior;
30 class Object;
31 class ObjectConfiguration;
32 class VariablesContainer;
33 class ArbitraryResourceWorker;
34 class SourceFile;
35 class Behavior;
36 class BehaviorsSharedData;
37 class BaseEvent;
38 class SerializerElement;
39 } // namespace gd
40 #undef GetObject // Disable an annoying macro
41 #undef CreateEvent
42 
43 namespace gd {
50 class GD_CORE_API Project : public ObjectsContainer {
51  public:
52  Project();
53  Project(const Project&);
54  virtual ~Project();
55  Project& operator=(const Project& rhs);
56 
61 
65  void SetName(const gd::String& name_) { name = name_; };
66 
70  const gd::String& GetName() const { return name; }
71 
75  const std::vector<gd::String>& GetCategories() const { return categories; };
76 
80  std::vector<gd::String>& GetCategories() { return categories; };
81 
85  void SetDescription(const gd::String& description_) {
86  description = description_;
87  };
88 
92  const gd::String& GetDescription() const { return description; }
93 
99  void SetVersion(const gd::String& version_) { version = version_; };
100 
104  const gd::String& GetVersion() const { return version; }
105 
109  void SetAuthor(const gd::String& author_) { author = author_; };
110 
114  const gd::String& GetAuthor() const { return author; }
115 
119  const std::vector<gd::String>& GetAuthorIds() const { return authorIds; };
120 
124  std::vector<gd::String>& GetAuthorIds() { return authorIds; };
125 
129  const std::vector<gd::String>& GetAuthorUsernames() const {
130  return authorUsernames;
131  };
132 
136  std::vector<gd::String>& GetAuthorUsernames() { return authorUsernames; };
137 
142  void SetPlayableWithKeyboard(bool playable = true) {
143  isPlayableWithKeyboard = playable;
144  }
145 
149  bool IsPlayableWithKeyboard() const { return isPlayableWithKeyboard; }
150 
155  void SetPlayableWithGamepad(bool playable = true) {
156  isPlayableWithGamepad = playable;
157  }
158 
162  bool IsPlayableWithGamepad() const { return isPlayableWithGamepad; }
163 
168  void SetPlayableWithMobile(bool playable = true) {
169  isPlayableWithMobile = playable;
170  }
171 
175  bool IsPlayableWithMobile() const { return isPlayableWithMobile; }
176 
180  void SetPackageName(const gd::String& packageName_) {
181  packageName = packageName_;
182  };
183 
187  const gd::String& GetPackageName() const { return packageName; }
188 
192  void SetTemplateSlug(const gd::String& templateSlug_) {
193  templateSlug = templateSlug_;
194  };
195 
199  const gd::String& GetTemplateSlug() const { return templateSlug; }
200 
206  void SetOrientation(const gd::String& orientation_) {
207  orientation = orientation_;
208  };
209 
213  const gd::String& GetOrientation() const { return orientation; }
214 
218  void SetProjectFile(const gd::String& file) { projectFile = file; }
219 
224  const gd::String& GetProjectFile() const { return projectFile; }
225 
231  void SetFolderProject(bool enable = true) { folderProject = enable; }
232 
237  bool IsFolderProject() const { return folderProject; }
238 
243  latestCompilationDirectory = dir;
244  }
245 
251  return latestCompilationDirectory;
252  }
253 
259  return platformSpecificAssets;
260  }
261 
267  return platformSpecificAssets;
268  }
269 
273  gd::LoadingScreen& GetLoadingScreen() { return loadingScreen; }
274 
278  const gd::LoadingScreen& GetLoadingScreen() const { return loadingScreen; }
279 
283  gd::Watermark& GetWatermark() { return watermark; }
284 
288  const gd::Watermark& GetWatermark() const { return watermark; }
289 
297  void SetGameResolutionSize(unsigned int width, unsigned int height) {
298  windowWidth = width;
299  windowHeight = height;
300  }
301 
305  unsigned int GetGameResolutionWidth() const { return windowWidth; }
306 
310  unsigned int GetGameResolutionHeight() const { return windowHeight; }
311 
317  return adaptGameResolutionAtRuntime;
318  }
319 
324  void SetAdaptGameResolutionAtRuntime(bool adaptGameResolutionAtRuntime_) {
325  adaptGameResolutionAtRuntime = adaptGameResolutionAtRuntime_;
326  }
327 
331  const gd::String& GetSizeOnStartupMode() const { return sizeOnStartupMode; }
332 
338  void SetSizeOnStartupMode(const gd::String& mode) {
339  sizeOnStartupMode = mode;
340  }
341 
346  void SetMaximumFPS(int maxFPS_) { maxFPS = maxFPS_; }
347 
351  int GetMaximumFPS() const { return maxFPS; }
352 
357  void SetMinimumFPS(unsigned int minFPS_) { minFPS = minFPS_; }
358 
362  unsigned int GetMinimumFPS() const { return minFPS; }
363 
368  return verticalSync;
369  }
370 
374  void SetVerticalSyncActivatedByDefault(bool enable) { verticalSync = enable; }
375 
379  const gd::String& GetScaleMode() const { return scaleMode; }
380 
384  void SetScaleMode(const gd::String& scaleMode_) { scaleMode = scaleMode_; }
385 
389  bool GetPixelsRounding() const { return pixelsRounding; }
390 
394  void SetPixelsRounding(bool enable) { pixelsRounding = enable; }
395 
399  const gd::String& GetAntialiasingMode() const { return antialiasingMode; }
400 
404  void SetAntialiasingMode(const gd::String& antialiasingMode_) {
405  antialiasingMode = antialiasingMode_;
406  }
407 
412  return isAntialisingEnabledOnMobile;
413  }
414 
418  void SetAntialisingEnabledOnMobile(bool enable) {
419  isAntialisingEnabledOnMobile = enable;
420  }
421 
428  return useDeprecatedZeroAsDefaultZOrder;
429  }
430 
437  useDeprecatedZeroAsDefaultZOrder = enable;
438  }
439 
443  void SetProjectUuid(const gd::String& projectUuid_) {
444  projectUuid = projectUuid_;
445  };
446 
451  const gd::String& GetProjectUuid() const { return projectUuid; }
452 
456  void ResetProjectUuid();
457 
465  return extensionProperties;
466  };
467 
475  return extensionProperties;
476  };
477 
481  const std::vector<Platform*>& GetUsedPlatforms() const { return platforms; };
482 
486  void AddPlatform(Platform& platform);
487 
494  bool RemovePlatform(const gd::String& platformName);
495 
500  Platform& GetCurrentPlatform() const;
501 
507  void SetCurrentPlatform(const gd::String& platformName);
508 
510 
515 
522  std::unique_ptr<gd::Object> CreateObject(const gd::String& type,
523  const gd::String& name) const;
524 
530  std::unique_ptr<gd::ObjectConfiguration> CreateObjectConfiguration(
531  const gd::String& type) const;
532 
545  std::shared_ptr<gd::BaseEvent> CreateEvent(
546  const gd::String& type, const gd::String& platformName = "");
548 
553 
556  bool HasLayoutNamed(const gd::String& name) const;
557 
561  Layout& GetLayout(const gd::String& name);
562 
566  const Layout& GetLayout(const gd::String& name) const;
567 
572  Layout& GetLayout(std::size_t index);
573 
578  const Layout& GetLayout(std::size_t index) const;
579 
583  std::size_t GetLayoutPosition(const gd::String& name) const;
584 
588  void MoveLayout(std::size_t oldIndex, std::size_t newIndex);
589 
595  void SwapLayouts(std::size_t first, std::size_t second);
596 
600  std::size_t GetLayoutsCount() const;
601 
606  gd::Layout& InsertNewLayout(const gd::String& name, std::size_t position);
607 
620  gd::Layout& InsertLayout(const Layout& layout, std::size_t position);
621 
625  void RemoveLayout(const gd::String& name);
626 
628 
632  void UnserializeFrom(const SerializerElement& element);
633 
639  void SerializeTo(SerializerElement& element) const;
640 
644  unsigned int GetLastSaveGDMajorVersion() { return gdMajorVersion; };
645 
649  unsigned int GetLastSaveGDMinorVersion() { return gdMinorVersion; };
650 
654  unsigned int GetLastSaveGDBuildVersion() { return gdBuildVersion; };
655 
660 
663  bool HasExternalEventsNamed(const gd::String& name) const;
664 
668  ExternalEvents& GetExternalEvents(const gd::String& name);
669 
673  const ExternalEvents& GetExternalEvents(const gd::String& name) const;
674 
679  ExternalEvents& GetExternalEvents(std::size_t index);
680 
685  const ExternalEvents& GetExternalEvents(std::size_t index) const;
686 
691  std::size_t GetExternalEventsPosition(const gd::String& name) const;
692 
696  void MoveExternalEvents(std::size_t oldIndex, std::size_t newIndex);
697 
703  void SwapExternalEvents(std::size_t first, std::size_t second);
704 
708  std::size_t GetExternalEventsCount() const;
709 
714  ExternalEvents& InsertNewExternalEvents(const gd::String& name,
715  std::size_t position);
716 
725  ExternalEvents& InsertExternalEvents(const ExternalEvents& externalEvents,
726  std::size_t position);
727 
731  void RemoveExternalEvents(const gd::String& name);
733 
738 
742  bool HasExternalLayoutNamed(const gd::String& name) const;
743 
747  ExternalLayout& GetExternalLayout(const gd::String& name);
748 
752  const ExternalLayout& GetExternalLayout(const gd::String& name) const;
753 
758  ExternalLayout& GetExternalLayout(std::size_t index);
759 
764  const ExternalLayout& GetExternalLayout(std::size_t index) const;
765 
770  std::size_t GetExternalLayoutPosition(const gd::String& name) const;
771 
775  void MoveExternalLayout(std::size_t oldIndex, std::size_t newIndex);
776 
782  void SwapExternalLayouts(std::size_t first, std::size_t second);
783 
787  std::size_t GetExternalLayoutsCount() const;
788 
793  gd::ExternalLayout& InsertNewExternalLayout(const gd::String& name,
794  std::size_t position);
795 
808  gd::ExternalLayout& InsertExternalLayout(const ExternalLayout& externalLayout,
809  std::size_t position);
810 
814  void RemoveExternalLayout(const gd::String& name);
815 
819  void SetFirstLayout(const gd::String& name) { firstLayout = name; }
820 
824  const gd::String& GetFirstLayout() { return firstLayout; }
825 
827 
831 
834  bool HasEventsFunctionsExtensionNamed(const gd::String& name) const;
835 
839  EventsFunctionsExtension& GetEventsFunctionsExtension(const gd::String& name);
840 
844  const EventsFunctionsExtension& GetEventsFunctionsExtension(
845  const gd::String& name) const;
846 
851  EventsFunctionsExtension& GetEventsFunctionsExtension(std::size_t index);
852 
857  const EventsFunctionsExtension& GetEventsFunctionsExtension(
858  std::size_t index) const;
859 
864  std::size_t GetEventsFunctionsExtensionPosition(const gd::String& name) const;
865 
869  void MoveEventsFunctionsExtension(std::size_t oldIndex, std::size_t newIndex);
870 
876  void SwapEventsFunctionsExtensions(std::size_t first, std::size_t second);
877 
881  std::size_t GetEventsFunctionsExtensionsCount() const;
882 
887  gd::EventsFunctionsExtension& InsertNewEventsFunctionsExtension(
888  const gd::String& name, std::size_t position);
889 
897  gd::EventsFunctionsExtension& InsertEventsFunctionsExtension(
898  const EventsFunctionsExtension& eventsFunctionExtension,
899  std::size_t position);
900 
904  void RemoveEventsFunctionsExtension(const gd::String& name);
905 
909  void ClearEventsFunctionsExtensions();
910 
914  bool HasEventsBasedObject(const gd::String& type) const;
915 
919  gd::EventsBasedObject& GetEventsBasedObject(const gd::String& type);
920 
924  const gd::EventsBasedObject& GetEventsBasedObject(
925  const gd::String& type) const;
926 
930  bool HasEventsBasedBehavior(const gd::String& type) const;
931 
935  gd::EventsBasedBehavior& GetEventsBasedBehavior(const gd::String& type);
936 
940  const gd::EventsBasedBehavior& GetEventsBasedBehavior(
941  const gd::String& type) const;
942 
944 
949 
954  return resourcesManager;
955  }
956 
961  ResourcesManager& GetResourcesManager() { return resourcesManager; }
962 
964 
969 
974  inline const gd::VariablesContainer& GetVariables() const {
975  return variables;
976  }
977 
982  inline gd::VariablesContainer& GetVariables() { return variables; }
983 
985 
989 
994  static bool IsNameSafe(const gd::String& name);
995 
1000  static gd::String GetSafeName(const gd::String& name);
1002 
1007 
1010  bool UseExternalSourceFiles() const { return useExternalSourceFiles; }
1011 
1016  const std::vector<std::unique_ptr<gd::SourceFile> >& GetAllSourceFiles()
1017  const {
1018  return externalSourceFiles;
1019  }
1020 
1027  bool HasSourceFile(gd::String name, gd::String language = "") const;
1028 
1032  SourceFile& GetSourceFile(const gd::String& name);
1033 
1037  const SourceFile& GetSourceFile(const gd::String& name) const;
1038 
1042  void RemoveSourceFile(const gd::String& name);
1043 
1048  gd::SourceFile& InsertNewSourceFile(const gd::String& name,
1049  const gd::String& language,
1050  std::size_t position = -1);
1052 
1053  private:
1058  void Init(const gd::Project& project);
1059 
1060  gd::String name;
1061  gd::String description;
1062  gd::String version;
1063  unsigned int windowWidth;
1064  unsigned int windowHeight;
1065  int maxFPS;
1066  unsigned int minFPS;
1068  bool verticalSync;
1069  gd::String scaleMode;
1070  bool pixelsRounding;
1072  bool adaptGameResolutionAtRuntime;
1074  gd::String
1075  sizeOnStartupMode;
1077  gd::String antialiasingMode;
1078  bool isAntialisingEnabledOnMobile;
1079  gd::String projectUuid;
1081  bool useDeprecatedZeroAsDefaultZOrder;
1086  std::vector<std::unique_ptr<gd::Layout> > scenes;
1087  gd::VariablesContainer variables;
1088  std::vector<std::unique_ptr<gd::ExternalLayout> >
1089  externalLayouts;
1090  std::vector<std::unique_ptr<gd::EventsFunctionsExtension> >
1091  eventsFunctionsExtensions;
1093  resourcesManager;
1094  std::vector<gd::Platform*>
1095  platforms;
1096  gd::String firstLayout;
1097  bool useExternalSourceFiles;
1098  std::vector<std::unique_ptr<gd::SourceFile> >
1099  externalSourceFiles;
1100  gd::String author;
1101  std::vector<gd::String>
1102  authorIds;
1103  std::vector<gd::String>
1104  authorUsernames;
1105  std::vector<gd::String> categories;
1106  bool isPlayableWithKeyboard;
1107  bool isPlayableWithGamepad;
1108  bool isPlayableWithMobile;
1109  gd::String packageName;
1110  gd::String templateSlug;
1112  gd::String orientation;
1114  bool
1115  folderProject;
1116  gd::String
1117  projectFile;
1118  gd::String latestCompilationDirectory;
1119  gd::Platform*
1120  currentPlatform;
1121  gd::PlatformSpecificAssets platformSpecificAssets;
1122  gd::LoadingScreen loadingScreen;
1123  gd::Watermark watermark;
1124  std::vector<std::unique_ptr<gd::ExternalEvents> >
1125  externalEvents;
1127  extensionProperties;
1128  mutable unsigned int gdMajorVersion;
1130  mutable unsigned int gdMinorVersion;
1132  mutable unsigned int gdBuildVersion;
1134 };
1135 
1136 } // namespace gd
1137 
1138 #endif // GDCORE_PROJECT_H
Represents a behavior that is implemented with events.
Definition: EventsBasedBehavior.h:31
Represents an object that is implemented with events.
Definition: EventsBasedObject.h:29
Hold a list of Events Functions (gd::EventsFunction) and Events Based Behaviors.
Definition: EventsFunctionsExtension.h:38
Definition: ExtensionProperties.h:19
Contains a list of events not directly linked to a layout.
Definition: ExternalEvents.h:31
An external layout allows to create layouts of objects that can be then inserted on a layout.
Definition: ExternalLayout.h:24
Represent a layout ( also called a scene ) of a project.
Definition: Layout.h:39
Describe the content and set up of the loading screen.
Definition: LoadingScreen.h:23
Used as a base class for classes that will own objects (see gd::Object).
Definition: ObjectsContainer.h:36
Base class for implementing a platform.
Definition: Platform.h:42
Store the icons, splashscreens or reference to any other asset that can be needed when exporting the ...
Definition: PlatformSpecificAssets.h:26
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
unsigned int GetLastSaveGDMajorVersion()
Definition: Project.h:644
const gd::String & GetPackageName() const
Get the project package name.
Definition: Project.h:187
const std::vector< std::unique_ptr< gd::SourceFile > > & GetAllSourceFiles() const
Return a const reference to the vector containing all the source files used by the game.
Definition: Project.h:1016
void SetVerticalSyncActivatedByDefault(bool enable)
Definition: Project.h:374
void SetPlayableWithGamepad(bool playable=true)
Definition: Project.h:155
void SetProjectUuid(const gd::String &projectUuid_)
Change the project UUID.
Definition: Project.h:443
const gd::LoadingScreen & GetLoadingScreen() const
Return a reference to loading screen setup for the project.
Definition: Project.h:278
void SetAntialisingEnabledOnMobile(bool enable)
Definition: Project.h:418
void SetAdaptGameResolutionAtRuntime(bool adaptGameResolutionAtRuntime_)
Set if the game resolution should be adapted to the window size at runtime.
Definition: Project.h:324
unsigned int GetGameResolutionWidth() const
Returns the default game resolution width.
Definition: Project.h:305
const gd::Watermark & GetWatermark() const
Return a reference to watermark setup for the project.
Definition: Project.h:288
const gd::String & GetSizeOnStartupMode() const
Get how the game size should be adapted to the screen.
Definition: Project.h:331
const gd::String & GetAntialiasingMode() const
Definition: Project.h:399
const gd::ExtensionProperties & GetExtensionProperties() const
Get the properties set by extensions.
Definition: Project.h:474
void SetSizeOnStartupMode(const gd::String &mode)
Set how to adapt the game size to the screen.
Definition: Project.h:338
bool GetPixelsRounding() const
Definition: Project.h:389
bool IsVerticalSynchronizationEnabledByDefault() const
Definition: Project.h:367
const gd::String & GetTemplateSlug() const
Get the slug of the template from which the project is created.
Definition: Project.h:199
unsigned int GetMinimumFPS() const
Definition: Project.h:362
bool IsPlayableWithGamepad() const
Definition: Project.h:162
void SetVersion(const gd::String &version_)
Change the version of the project. This can be freely set, but should follow "X.Y....
Definition: Project.h:99
unsigned int GetLastSaveGDBuildVersion()
Definition: Project.h:654
void SetProjectFile(const gd::String &file)
Definition: Project.h:218
const std::vector< gd::String > & GetAuthorIds() const
Get the author ids of the project.
Definition: Project.h:119
bool GetAdaptGameResolutionAtRuntime() const
Returns true if the game resolution should be adapted to the window size at runtime.
Definition: Project.h:316
gd::PlatformSpecificAssets & GetPlatformSpecificAssets()
Return a reference to platform assets of the project (icons, splashscreen...).
Definition: Project.h:258
void SetGameResolutionSize(unsigned int width, unsigned int height)
Definition: Project.h:297
void SetPlayableWithMobile(bool playable=true)
Definition: Project.h:168
void SetFolderProject(bool enable=true)
Definition: Project.h:231
const gd::String & GetLastCompilationDirectory() const
Definition: Project.h:250
void SetPlayableWithKeyboard(bool playable=true)
Definition: Project.h:142
const gd::String & GetScaleMode() const
Definition: Project.h:379
bool IsPlayableWithMobile() const
Definition: Project.h:175
void SetMinimumFPS(unsigned int minFPS_)
Definition: Project.h:357
gd::ExtensionProperties & GetExtensionProperties()
Get the properties set by extensions.
Definition: Project.h:464
const std::vector< gd::String > & GetAuthorUsernames() const
Get the author usernames of the project.
Definition: Project.h:129
const std::vector< gd::String > & GetCategories() const
Get the categories/genres of the project.
Definition: Project.h:75
void SetOrientation(const gd::String &orientation_)
Change the project orientation (in particular when exported with Cordova). This has no effect on desk...
Definition: Project.h:206
const std::vector< Platform * > & GetUsedPlatforms() const
Definition: Project.h:481
std::vector< gd::String > & GetCategories()
Get the categories of the project, to modify them (non-const).
Definition: Project.h:80
gd::LoadingScreen & GetLoadingScreen()
Return a reference to loading screen setup for the project.
Definition: Project.h:273
bool IsAntialisingEnabledOnMobile() const
Definition: Project.h:411
gd::VariablesContainer & GetVariables()
Definition: Project.h:982
gd::Watermark & GetWatermark()
Return a reference to watermark setup for the project.
Definition: Project.h:283
const gd::PlatformSpecificAssets & GetPlatformSpecificAssets() const
Return a reference to platform assets of the project (icons, splashscreen...).
Definition: Project.h:266
void SetUseDeprecatedZeroAsDefaultZOrder(bool enable)
Set if the project should set 0 as Z-order for objects created from events (which is deprecated) - in...
Definition: Project.h:436
const gd::VariablesContainer & GetVariables() const
Definition: Project.h:974
const gd::String & GetVersion() const
Get the project version.
Definition: Project.h:104
const gd::String & GetName() const
Get the project name.
Definition: Project.h:70
int GetMaximumFPS() const
Definition: Project.h:351
const ResourcesManager & GetResourcesManager() const
Provide access to the ResourceManager member containing the list of the resources.
Definition: Project.h:953
ResourcesManager & GetResourcesManager()
Provide access to the ResourceManager member containing the list of the resources.
Definition: Project.h:961
void SetAuthor(const gd::String &author_)
Change the author of the project.
Definition: Project.h:109
void SetAntialiasingMode(const gd::String &antialiasingMode_)
Definition: Project.h:404
const gd::String & GetAuthor() const
Get the project author name.
Definition: Project.h:114
void SetTemplateSlug(const gd::String &templateSlug_)
Change the slug of the template from which the project is created.
Definition: Project.h:192
unsigned int GetLastSaveGDMinorVersion()
Definition: Project.h:649
bool IsPlayableWithKeyboard() const
Definition: Project.h:149
const gd::String & GetOrientation() const
Get the project orientation ("default", "landscape", "portrait").
Definition: Project.h:213
void SetPixelsRounding(bool enable)
Definition: Project.h:394
void SetMaximumFPS(int maxFPS_)
Definition: Project.h:346
void SetScaleMode(const gd::String &scaleMode_)
Definition: Project.h:384
void SetName(const gd::String &name_)
Change the project name.
Definition: Project.h:65
unsigned int GetGameResolutionHeight() const
Returns the default game resolution height.
Definition: Project.h:310
std::vector< gd::String > & GetAuthorIds()
Get the author ids of the project, to modify them (non-const).
Definition: Project.h:124
const gd::String & GetDescription() const
Get the project description.
Definition: Project.h:92
bool IsFolderProject() const
Definition: Project.h:237
void SetPackageName(const gd::String &packageName_)
Change the project package name.
Definition: Project.h:180
bool UseExternalSourceFiles() const
Return true if the game activated the use of external source files.
Definition: Project.h:1010
void SetFirstLayout(const gd::String &name)
Definition: Project.h:819
const gd::String & GetProjectUuid() const
Get the project UUID, useful when using the game on online services that would require a unique ident...
Definition: Project.h:451
const gd::String & GetFirstLayout()
Definition: Project.h:824
const gd::String & GetProjectFile() const
Definition: Project.h:224
bool GetUseDeprecatedZeroAsDefaultZOrder() const
Return if the project should set 0 as Z-order for objects created from events (which is deprecated) -...
Definition: Project.h:427
void SetDescription(const gd::String &description_)
Change the project description.
Definition: Project.h:85
void SetLastCompilationDirectory(const gd::String &dir)
Definition: Project.h:242
std::vector< gd::String > & GetAuthorUsernames()
Get the author usernames of the project, to modify them (non-const).
Definition: Project.h:136
Inventory all resources used by a project.
Definition: ResourcesManager.h:557
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
Represents a "physical" source file.
Definition: SourceFile.h:25
String represents an UTF8 encoded string.
Definition: String.h:31
Class defining a container for gd::Variable.
Definition: VariablesContainer.h:30
Describe the content and set up of the watermark.
Definition: Watermark.h:23
Definition: CommonTools.h:24