UltimateZoneBuilder/Source/Core/GZBuilder/Data/EngineInfo.cs
MaxED f419db1518 DECORATE Scale actor property is now taken into account when rendering models.
Fixed several bugs in Engine selector dialog ("Game configurations -> Testing").
2013-06-14 11:40:18 +00:00

35 lines
1.2 KiB
C#

using System;
using System.IO;
namespace CodeImp.DoomBuilder.GZBuilder.Data {
public class EngineInfo {
public const string DEFAULT_ENGINE_NAME = "Engine with no name";
public string TestProgramName;
public string TestProgram;
public string TestParameters;
public bool CustomParameters;
public int TestSkill;
public bool TestShortPaths;
public EngineInfo() {
TestProgramName = DEFAULT_ENGINE_NAME;
}
public EngineInfo(EngineInfo other) {
TestProgramName = other.TestProgramName;
TestProgram = other.TestProgram;
TestParameters = other.TestParameters;
CustomParameters = other.CustomParameters;
TestSkill = other.TestSkill;
TestShortPaths = other.TestShortPaths;
}
public void CheckProgramName(bool forced) {
if ((forced || TestProgramName == DEFAULT_ENGINE_NAME) && !String.IsNullOrEmpty(TestProgram)) {
//get engine name from folder name
TestProgramName = Path.GetFileNameWithoutExtension(TestProgram);
}
}
}
}