Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions PCL.Neo.Core/Models/Minecraft/Game/Data/GameInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ namespace PCL.Neo.Core.Models.Minecraft.Game.Data;

public record GameInfo
{
/// <summary>
/// The name of the game version.
/// </summary>
public required string Name { get; set; }

/// <summary>
/// .minecraft folder path.
/// </summary>
Expand All @@ -15,21 +20,20 @@ public record GameInfo
public required string RootDirectory { get; set; }

/// <summary>
/// The name of the game version.
/// The loader type.
/// </summary>
public required string Name { get; set; }
public GameType Type { get; set; } = GameType.Unknown;

/// <summary>
/// The loader type.
/// The game version.
/// </summary>
public GameType Type { get; set; } = GameType.Unknown;
public required string Version { get; set; }

/// <summary>
/// Demonstrate if the version has been loaded (runed).
/// </summary>

[JsonIgnore]
public bool IsRunning { get; set; } = false;
public bool IsRunning { get; set; }

private bool? _isIndie;

Expand Down Expand Up @@ -57,6 +61,7 @@ public bool IsIndie
public static GameInfo Factory(
string targetDir, string gameDir,
string versionName,
string verison,
bool isIndie,
GameType type)
{
Expand All @@ -66,7 +71,8 @@ public static GameInfo Factory(
RootDirectory = targetDir,
GameDirectory = gameDir,
IsIndie = isIndie,
Type = type
Type = type,
Version = verison
};
}
}
40 changes: 0 additions & 40 deletions PCL.Neo.Core/Models/Minecraft/Game/Data/GameVersionId.cs

This file was deleted.

288 changes: 0 additions & 288 deletions PCL.Neo.Core/Models/Minecraft/MetadataFile.cs

This file was deleted.

Loading
Loading