Add UseLargeWorlds to engine configuration

This commit is contained in:
Wojtek Figat
2022-06-13 18:54:15 +02:00
parent 1fc26a63a7
commit ffce2005da
5 changed files with 76 additions and 5 deletions

View File

@@ -15,6 +15,11 @@ namespace Flax.Build
{
private static Version _engineVersion;
/// <summary>
/// Gets the engine project.
/// </summary>
public static ProjectInfo EngineProject => ProjectInfo.Load(Path.Combine(Globals.EngineRoot, "Flax.flaxproj"));
/// <summary>
/// Gets the engine version.
/// </summary>
@@ -24,7 +29,7 @@ namespace Flax.Build
{
if (_engineVersion == null)
{
_engineVersion = ProjectInfo.Load(Path.Combine(Globals.EngineRoot, "Flax.flaxproj")).Version;
_engineVersion = EngineProject.Version;
Log.Verbose(string.Format("Engine build version: {0}", _engineVersion));
}
return _engineVersion;