-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModtype.cs
More file actions
84 lines (75 loc) · 3 KB
/
Copy pathModtype.cs
File metadata and controls
84 lines (75 loc) · 3 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using System;
using System.Collections.Generic;
namespace Deadlock_Mod_Loader2
{
public class ModInfo
{
public string Name { get; set; }
public string Author { get; set; }
public string Description { get; set; }
public string FolderName { get; set; }
public List<FileMapping> FileMappings { get; set; } = new List<FileMapping>();
public List<DirectoryMapping> DirectoryMappings { get; set; } = new List<DirectoryMapping>();
public ModType Type { get; set; } = ModType.VpkOnly;
}
public enum ModType
{
VpkOnly, // Only contains VPK files
DirectoryBased, // Contains directory structure (maps, cfg, etc.)
Mixed // Contains both VPKs and directories
}
public class FileMapping
{
public string OriginalName { get; set; }
public string CurrentName { get; set; }
public string PakPrefix { get; set; }
public string RelativePath { get; set; }
public FileType Type { get; set; } = FileType.Vpk;
}
public enum FileType
{
Vpk,
Map,
Config,
Asset,
Other
}
public class DirectoryMapping
{
public string SourcePath { get; set; } // Original path in the mod
public string TargetPath { get; set; } // Where it maps to in the game
public string ModPrefix { get; set; } // Unique prefix for this mod's files
public List<string> Files { get; set; } = new List<string>(); // Files in this directory
}
public class ActiveModInfo
{
public string ModName { get; set; }
public List<string> PakPrefixes { get; set; } = new List<string>();
public string OriginalFolderName { get; set; }
public ModType Type { get; set; } = ModType.VpkOnly;
public List<string> ActiveDirectories { get; set; } = new List<string>();
}
public class ModStructureInfo
{
public bool HasCitadelStructure { get; set; }
public string CitadelPath { get; set; }
public Dictionary<string, string> Directories { get; set; } = new Dictionary<string, string>();
public Dictionary<string, List<string>> FilesByDirectory { get; set; } = new Dictionary<string, List<string>>();
public List<string> VpkFiles { get; set; } = new List<string>();
public ModType Type { get; set; }
}
public class ModProfile
{
public string Name { get; set; }
public string Description { get; set; }
public DateTime Created { get; set; }
public DateTime LastUsed { get; set; }
public List<string> ActiveModFolderNames { get; set; } = new List<string>();
public Dictionary<string, int> ModLoadOrder { get; set; } = new Dictionary<string, int>();
}
public class VpkGroup
{
public string BaseName { get; set; }
public List<string> Files { get; set; } = new List<string>();
}
}