Refactored namespace and project name.
This commit is contained in:
9
CFUtils/Serialization/Modpack/File.cs
Normal file
9
CFUtils/Serialization/Modpack/File.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace CFUtils.Serialization.Modpack
|
||||
{
|
||||
public struct File
|
||||
{
|
||||
public string ProjectId { get; set; }
|
||||
public string FileId { get; set; }
|
||||
public bool Required { get; set; }
|
||||
}
|
||||
}
|
12
CFUtils/Serialization/Modpack/Game.cs
Normal file
12
CFUtils/Serialization/Modpack/Game.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
namespace CFUtils.Serialization.Modpack
|
||||
{
|
||||
public struct Game
|
||||
{
|
||||
[JsonIgnore]
|
||||
public ManifestGames gameType;
|
||||
public string Version { get; set; }
|
||||
public IList<ModLoader> ModLoaders { get; set; }
|
||||
}
|
||||
}
|
19
CFUtils/Serialization/Modpack/Manifest.cs
Normal file
19
CFUtils/Serialization/Modpack/Manifest.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace CFUtils.Serialization.Modpack
|
||||
{
|
||||
public struct Manifest
|
||||
{
|
||||
[JsonIgnore]
|
||||
public Game game;
|
||||
public string ManifestType { get; set; }
|
||||
public int ManifestVersion { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string Author { get; set; }
|
||||
public IList<File> Files { get; set; }
|
||||
public string Overrides { get; set; }
|
||||
}
|
||||
}
|
8
CFUtils/Serialization/Modpack/ModLoader.cs
Normal file
8
CFUtils/Serialization/Modpack/ModLoader.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace CFUtils.Serialization.Modpack
|
||||
{
|
||||
public struct ModLoader
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public bool Primary { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user