-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMCLAGame.cs
48 lines (41 loc) · 1.7 KB
/
MCLAGame.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using CodeX.Core.Engine;
using CodeX.Games.MCLA.RPF3;
namespace CodeX.Games.MCLA
{
public class MCLAGame : Game
{
public override string Name => "Midnight Club: Los Angeles";
public override string ShortName => "MCLA";
public override string GameFolder { get => GameFolderSetting.GetString(); set => GameFolderSetting.Set(value); }
public override string GamePathPrefix => "MCLA\\";
public override bool GameFolderOk => Directory.Exists(GameFolder);
public override bool RequiresGameFolder => true;
public override bool Enabled { get => GameEnabledSetting.GetBool(); set => GameEnabledSetting.Set(value); }
public override bool EnableMapView => true;
public override FileTypeIcon Icon => FileTypeIcon.Hotdog;
public override string HashAlgorithm => "Jenkins";
public static Setting GameFolderSetting = Settings.Register("MCLA.GameFolder", SettingType.String, "C:\\XboxGames\\MCLA");
public static Setting GameEnabledSetting = Settings.Register("MCLA.Enabled", SettingType.Bool, true);
public override bool CheckGameFolder(string folder)
{
return Directory.Exists(folder);
}
public override bool AutoDetectGameFolder(out string source)
{
source = null;
return false;
}
public override FileManager CreateFileManager()
{
return new Rpf3FileManager(this);
}
public override Level GetMapLevel()
{
return null;
}
public override Setting[] GetMapSettings()
{
return new[] { MCLAMap.EnabledSetting, MCLAMap.StartPositionSetting };
}
}
}