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
101 lines
2.2 KiB
C++
101 lines
2.2 KiB
C++
/** \file
|
|
* GDevelop
|
|
* 2008-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
*/
|
|
|
|
#ifndef GDCORE_VERSIONWRAPPER_H
|
|
#define GDCORE_VERSIONWRAPPER_H
|
|
#include "GDCore/String.h"
|
|
|
|
#include "GDCore/Tools/VersionPriv.h"
|
|
|
|
namespace gd {
|
|
|
|
/**
|
|
* \brief Used to get information about GDevelop Core version.
|
|
*
|
|
* \ingroup Tools
|
|
*/
|
|
class GD_CORE_API VersionWrapper {
|
|
public:
|
|
/**
|
|
* \brief Get GDevelop Core Major version number
|
|
*/
|
|
static int Major();
|
|
|
|
/**
|
|
* \brief Get GDevelop Core Minor version number
|
|
*/
|
|
static int Minor();
|
|
|
|
/**
|
|
* \brief Get GDevelop Core Build version number
|
|
*/
|
|
static int Build();
|
|
|
|
/**
|
|
* \brief Get GDevelop Core Revision version number
|
|
*/
|
|
static int Revision();
|
|
|
|
/**
|
|
* \brief Get a full string containing version.
|
|
*/
|
|
static gd::String FullString();
|
|
|
|
/**
|
|
* \brief Get GDCore status ( Alpha/Beta/Release Candidate/Release )
|
|
*/
|
|
static gd::String Status();
|
|
|
|
/**
|
|
* \brief Return true if GDCpp is compiled with edittime support.
|
|
*/
|
|
static bool CompiledForEdittime();
|
|
|
|
/**
|
|
* \brief Get Year of the release
|
|
*/
|
|
static gd::String Year();
|
|
|
|
/**
|
|
* \brief Get Month of the release
|
|
*/
|
|
static gd::String Month();
|
|
|
|
/**
|
|
* \brief Get Day of the release
|
|
*/
|
|
static gd::String Date();
|
|
|
|
/**
|
|
* \brief Return true if the first version is older
|
|
* than the second version.
|
|
*/
|
|
static bool IsOlder(int major,
|
|
int minor,
|
|
int build,
|
|
int revision,
|
|
int major2,
|
|
int minor2,
|
|
int build2,
|
|
int revision2);
|
|
|
|
/**
|
|
* \brief Return true if the first version is older or equal
|
|
* to the second version.
|
|
*/
|
|
static bool IsOlderOrEqual(int major,
|
|
int minor,
|
|
int build,
|
|
int revision,
|
|
int major2,
|
|
int minor2,
|
|
int build2,
|
|
int revision2);
|
|
};
|
|
|
|
} // namespace gd
|
|
|
|
#endif // GDCORE_VERSIONWRAPPER_H
|