69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
namespace SrcMod.Shell.ObjectModels.Source;
|
|
|
|
// Referencing https://developer.valvesoftware.com/wiki/Gameinfo.txt.
|
|
public class GameInfo
|
|
{
|
|
// Name
|
|
public string Game;
|
|
public string Title;
|
|
public bool GameLogo;
|
|
|
|
// Options
|
|
public string Type; // TODO: Make this an enum.
|
|
public bool NoDifficulty;
|
|
public bool HasPortals;
|
|
public bool NoCrosshair;
|
|
public bool AdvCrosshair;
|
|
public bool NoModels;
|
|
public bool NoHIModel;
|
|
|
|
public Dictionary<string, int> Hidden_Maps;
|
|
public Dictionary<string, string> CommandLine;
|
|
|
|
// Steam games list
|
|
public string Developer;
|
|
public string Developer_URL;
|
|
public string Manual;
|
|
public string Icon;
|
|
|
|
// Engine and tools
|
|
public bool Nodegraph;
|
|
public string GameData;
|
|
public string InstancePath;
|
|
public bool SupportsDX8;
|
|
public bool SupportsVR;
|
|
public bool SupportsXBox360;
|
|
public FileSystemData FileSystem;
|
|
|
|
internal GameInfo()
|
|
{
|
|
Game = string.Empty;
|
|
Title = string.Empty;
|
|
Type = string.Empty;
|
|
Hidden_Maps = new();
|
|
CommandLine = new();
|
|
Developer = string.Empty;
|
|
Developer_URL = string.Empty;
|
|
Manual = string.Empty;
|
|
Icon = string.Empty;
|
|
GameData = string.Empty;
|
|
FileSystem = new();
|
|
InstancePath = string.Empty;
|
|
}
|
|
|
|
public class FileSystemData
|
|
{
|
|
public int SteamAppID;
|
|
public int AdditionalContentId;
|
|
public int ToolsAppId;
|
|
|
|
// Can't make the keys here enums because they can be strung together,
|
|
public Dictionary<string, string> SearchPaths;
|
|
|
|
internal FileSystemData()
|
|
{
|
|
SearchPaths = new();
|
|
}
|
|
}
|
|
}
|