You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
752 B
C
34 lines
752 B
C
|
4 years ago
|
/******************************************************************************
|
||
|
|
* File - Version.h
|
||
|
|
* Author - Joey Pollack
|
||
|
|
* Date - 2020/03/06 (y/m/d)
|
||
|
|
* Mod Date - 2021/08/31 (y/m/d)
|
||
|
|
* Description - Defines the current version of the engine and provides
|
||
|
|
* methods to work with the Version struct. Using Semantic
|
||
|
|
* Versioning https://semver.org/
|
||
|
|
*
|
||
|
|
******************************************************************************/
|
||
|
|
|
||
|
|
#ifndef _VERSION_H_
|
||
|
|
#define _VERSION_H_
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
|
||
|
4 years ago
|
#include <utils/opRes.h>
|
||
|
4 years ago
|
|
||
|
|
namespace lunarium
|
||
|
|
{
|
||
|
|
struct Version
|
||
|
|
{
|
||
|
|
int Major;
|
||
|
|
int Minor;
|
||
|
|
int Patch;
|
||
|
|
|
||
|
|
static Version GetVersion();
|
||
|
|
static OpRes StringToVersion(const char* str, Version& v);
|
||
|
|
std::string ToString();
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // _VERSION_H_
|