This commit is contained in:
gamer147
2026-05-25 12:03:47 -04:00
parent d067f8a64a
commit 558e8288eb
44 changed files with 6512 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
using System.Text.Json.Serialization;
using MessagePack;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Common.BasicPuzzle;
[MessagePackObject]
public class PuzzleEntryResponse
{
[JsonPropertyName("puzzle_id")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("puzzle_id")]
public int PuzzleId { get; set; }
[JsonPropertyName("puzzle_difficulty")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("puzzle_difficulty")]
public int PuzzleDifficulty { get; set; }
[JsonPropertyName("is_cleared")] [Key("is_cleared")]
public bool IsCleared { get; set; }
[JsonPropertyName("is_additional")] [Key("is_additional")]
public bool IsAdditional { get; set; }
[JsonPropertyName("is_playable")] [Key("is_playable")]
public bool IsPlayable { get; set; } = true;
[JsonPropertyName("release_condition_text_id")] [Key("release_condition_text_id")]
public string ReleaseConditionTextId { get; set; } = string.Empty;
}

View File

@@ -0,0 +1,36 @@
using System.Text.Json.Serialization;
using MessagePack;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Common.BasicPuzzle;
[MessagePackObject]
public class PuzzleGroupResponse
{
[JsonPropertyName("puzzle_master_id")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("puzzle_master_id")]
public int PuzzleMasterId { get; set; }
[JsonPropertyName("puzzle_data")] [Key("puzzle_data")]
public List<PuzzleEntryResponse> PuzzleData { get; set; } = new();
[JsonPropertyName("puzzle_chara_id")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("puzzle_chara_id")]
public int PuzzleCharaId { get; set; }
[JsonPropertyName("puzzle_difficulty_name_list")] [Key("puzzle_difficulty_name_list")]
public Dictionary<string, string> PuzzleDifficultyNameList { get; set; } = new();
[JsonPropertyName("is_all_cleared")] [Key("is_all_cleared")]
public bool IsAllCleared { get; set; }
[JsonPropertyName("chara_id")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("chara_id")]
public int CharaId { get; set; }
[JsonPropertyName("sort_type")] [JsonConverter(typeof(StringifiedIntConverter))] [Key("sort_type")]
public int SortType { get; set; }
[JsonPropertyName("basic_title_text_id")] [Key("basic_title_text_id")]
public string BasicTitleTextId { get; set; } = string.Empty;
[JsonPropertyName("is_mission_target")] [Key("is_mission_target")]
public bool IsMissionTarget { get; set; }
}