UltimateZoneBuilder/Source/Core/GZBuilder/Data/EngineInfo.cs
MaxED 15b2adfe30 Texture Browser Form: swapped foreground and background colors of texture size labels.
Fixed, Texture Browser Form: well, I broke "Tab" key functionality again (in previous commit)...
Maintenance: changed curly braces style to match DB2 one (hopefully not breaking anything in the process...).
Maintenance: changed private method names casing to match DB2 one.
2014-12-03 23:15:26 +00:00

41 lines
1 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);
}
}
}
}