-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c5049c
commit 4b11f80
Showing
22 changed files
with
468 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
namespace MinecraftLaunch.Classes.Enums { | ||
public enum DownloadEntryType { | ||
Jar, | ||
Asset, | ||
Library | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using MinecraftLaunch.Classes.Enums; | ||
using MinecraftLaunch.Classes.Interfaces; | ||
|
||
namespace MinecraftLaunch.Classes.Models.Game { | ||
public record JarEntry : IDownloadEntry { | ||
public int Size { get; set; } | ||
|
||
public string Url { get; set; } | ||
|
||
public string Checksum { get; set; } | ||
|
||
public string Path { get; set; } | ||
|
||
public string McVersion { get; set; } | ||
|
||
public DownloadEntryType Type => DownloadEntryType.Jar; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
MinecraftLaunch/Classes/Models/Install/ForgeInstallEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace MinecraftLaunch.Classes.Models.Install { | ||
public record ForgeInstallEntry { | ||
[JsonPropertyName("build")] | ||
public int Build { get; set; } | ||
|
||
[JsonPropertyName("branch")] | ||
public string Branch { get; set; } | ||
|
||
[JsonPropertyName("mcversion")] | ||
public string McVersion { get; set; } | ||
|
||
[JsonPropertyName("version")] | ||
public string ForgeVersion { get; set; } | ||
|
||
[JsonPropertyName("modified")] | ||
public DateTime ModifiedTime { get; set; } | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
MinecraftLaunch/Classes/Models/Install/HighVersionForgeProcessorEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace MinecraftLaunch.Classes.Models.Install { | ||
public record HighVersionForgeProcessorEntry { | ||
[JsonPropertyName("jar")] | ||
public string Jar { get; set; } | ||
|
||
[JsonPropertyName("sides")] | ||
public List<string> Sides { get; set; } = new(); | ||
|
||
[JsonPropertyName("classpath")] | ||
public IEnumerable<string> Classpath { get; set; } | ||
|
||
[JsonPropertyName("args")] | ||
public IEnumerable<string> Args { get; set; } | ||
|
||
[JsonPropertyName("outputs")] | ||
public Dictionary<string, string> Outputs { get; set; } = new(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.