mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-13 15:04:37 +01:00
player dbs...
This commit is contained in:
@@ -6,14 +6,16 @@ public static class Data
|
||||
{
|
||||
static readonly Logger c = new(nameof(Data), ConsoleColor.Yellow);
|
||||
|
||||
public static Dictionary<int, ChapterTemplate> ChapterTemplate;
|
||||
public static Dictionary<int, ShipDataStatistics> ShipDataStatistics;
|
||||
public static Dictionary<int, TaskDateTemplate> TaskDataTemplate;
|
||||
public static Dictionary<int, ChapterTemplate> ChapterTemplate = [];
|
||||
public static Dictionary<int, ShipDataStatistics> ShipDataStatistics = [];
|
||||
public static Dictionary<int, ShipDataTemplate> ShipDataTemplate = [];
|
||||
public static Dictionary<int, TaskDateTemplate> TaskDataTemplate = [];
|
||||
|
||||
public static void Load()
|
||||
{
|
||||
LoadData(ref ChapterTemplate, "chapter_template.json", nameof(ChapterTemplate));
|
||||
LoadData(ref ShipDataStatistics, "ship_data_statistics.json", nameof(ShipDataStatistics));
|
||||
LoadData(ref ShipDataTemplate, "ship_data_template.json", nameof(ShipDataTemplate));
|
||||
LoadData(ref TaskDataTemplate, "task_data_template.json", nameof(TaskDataTemplate));
|
||||
|
||||
c.Log("All data tables loaded");
|
||||
|
||||
80
BLHX.Server.Common/Data/Model/ShipDataTemplate.cs
Normal file
80
BLHX.Server.Common/Data/Model/ShipDataTemplate.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
namespace BLHX.Server.Common.Data
|
||||
{
|
||||
public partial class ShipDataTemplate : Model
|
||||
{
|
||||
[JsonPropertyName("airassist_time")]
|
||||
public List<uint> AirassistTime { get; set; }
|
||||
|
||||
[JsonPropertyName("buff_list")]
|
||||
public List<uint> BuffList { get; set; }
|
||||
|
||||
[JsonPropertyName("buff_list_display")]
|
||||
public List<uint> BuffListDisplay { get; set; }
|
||||
|
||||
[JsonPropertyName("can_get_proficency")]
|
||||
public uint CanGetProficency { get; set; }
|
||||
|
||||
[JsonPropertyName("energy")]
|
||||
public uint Energy { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_1")]
|
||||
public List<uint> Equip1 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_2")]
|
||||
public List<uint> Equip2 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_3")]
|
||||
public List<uint> Equip3 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_4")]
|
||||
public List<uint> Equip4 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_5")]
|
||||
public List<uint> Equip5 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_id_1")]
|
||||
public uint EquipId1 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_id_2")]
|
||||
public uint EquipId2 { get; set; }
|
||||
|
||||
[JsonPropertyName("equip_id_3")]
|
||||
public uint EquipId3 { get; set; }
|
||||
|
||||
[JsonPropertyName("group_type")]
|
||||
public uint GroupType { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_buff_list")]
|
||||
public List<uint> HideBuffList { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public uint Id { get; set; }
|
||||
|
||||
[JsonPropertyName("max_level")]
|
||||
public uint MaxLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("oil_at_end")]
|
||||
public uint OilAtEnd { get; set; }
|
||||
|
||||
[JsonPropertyName("oil_at_start")]
|
||||
public uint OilAtStart { get; set; }
|
||||
|
||||
[JsonPropertyName("specific_type")]
|
||||
public List<string> SpecificType { get; set; }
|
||||
|
||||
[JsonPropertyName("star")]
|
||||
public uint Star { get; set; }
|
||||
|
||||
[JsonPropertyName("star_max")]
|
||||
public uint StarMax { get; set; }
|
||||
|
||||
[JsonPropertyName("strengthen_id")]
|
||||
public uint StrengthenId { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public uint Type { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user