Add version to game settings
This commit is contained in:
@@ -221,6 +221,7 @@ void GameSettings::Deserialize(DeserializeStream& stream, ISerializeModifier* mo
|
|||||||
ProductName = JsonTools::GetString(stream, "ProductName");
|
ProductName = JsonTools::GetString(stream, "ProductName");
|
||||||
CompanyName = JsonTools::GetString(stream, "CompanyName");
|
CompanyName = JsonTools::GetString(stream, "CompanyName");
|
||||||
CopyrightNotice = JsonTools::GetString(stream, "CopyrightNotice");
|
CopyrightNotice = JsonTools::GetString(stream, "CopyrightNotice");
|
||||||
|
Version = JsonTools::GetString(stream, "Version");
|
||||||
Icon = JsonTools::GetGuid(stream, "Icon");
|
Icon = JsonTools::GetGuid(stream, "Icon");
|
||||||
FirstScene = JsonTools::GetGuid(stream, "FirstScene");
|
FirstScene = JsonTools::GetGuid(stream, "FirstScene");
|
||||||
NoSplashScreen = JsonTools::GetBool(stream, "NoSplashScreen", NoSplashScreen);
|
NoSplashScreen = JsonTools::GetBool(stream, "NoSplashScreen", NoSplashScreen);
|
||||||
|
|||||||
@@ -33,6 +33,12 @@ public:
|
|||||||
API_FIELD(Attributes="EditorOrder(15), EditorDisplay(\"General\")")
|
API_FIELD(Attributes="EditorOrder(15), EditorDisplay(\"General\")")
|
||||||
String CopyrightNotice;
|
String CopyrightNotice;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The game version number. Usually in format: MAJOR.MINOR.BUILD.REVISION
|
||||||
|
/// </summary>
|
||||||
|
API_FIELD(Attributes="EditorOrder(20), EditorDisplay(\"General\")")
|
||||||
|
String Version;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The default application icon.
|
/// The default application icon.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user