mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
59 lines
1.2 KiB
C++
59 lines
1.2 KiB
C++
/*
|
|
* GDevelop Core
|
|
* Copyright 2008-2018 Florian Rival (Florian.Rival@gmail.com). All rights
|
|
* reserved. This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef GDCORE_LOADINGSCREEN_H
|
|
#define GDCORE_LOADINGSCREEN_H
|
|
#include "GDCore/String.h"
|
|
namespace gd {
|
|
class SerializerElement;
|
|
}
|
|
|
|
namespace gd {
|
|
|
|
/**
|
|
* \brief Describe the content and set up of the loading screen
|
|
*
|
|
* \see gd::LoadingScreen
|
|
*
|
|
* \ingroup PlatformDefinition
|
|
*/
|
|
class GD_CORE_API LoadingScreen {
|
|
public:
|
|
LoadingScreen(){};
|
|
virtual ~LoadingScreen(){};
|
|
|
|
/**
|
|
* \brief Set if the GDevelop splash should be shown while loading assets.
|
|
*/
|
|
void ShowGDevelopSplash(bool show) { showGDevelopSplash = show; };
|
|
|
|
/**
|
|
* \brief Return true if the GDevelop splash should be shown while loading
|
|
* assets.
|
|
*/
|
|
bool IsGDevelopSplashShown() const { return showGDevelopSplash; };
|
|
|
|
/** \name Saving and loading
|
|
*/
|
|
///@{
|
|
/**
|
|
* \brief Serialize objects groups container.
|
|
*/
|
|
void SerializeTo(SerializerElement& element) const;
|
|
|
|
/**
|
|
* \brief Unserialize the objects groups container.
|
|
*/
|
|
void UnserializeFrom(const SerializerElement& element);
|
|
///@}
|
|
|
|
private:
|
|
bool showGDevelopSplash;
|
|
};
|
|
} // namespace gd
|
|
|
|
#endif // GDCORE_LOADINGSCREEN_H
|