diff --git a/EpinelPS/GameData/GameData.cs b/EpinelPS/GameData/GameData.cs index cad4e76..1522bff 100644 --- a/EpinelPS/GameData/GameData.cs +++ b/EpinelPS/GameData/GameData.cs @@ -47,6 +47,7 @@ namespace EpinelPS.StaticInfo public Dictionary eventManagers = new Dictionary(); public Dictionary lwptablemgrs = new Dictionary(); // Fixed initialization private Dictionary albumResourceRecords = new Dictionary(); + public Dictionary userFrameTable = new Dictionary(); @@ -400,6 +401,12 @@ namespace EpinelPS.StaticInfo { lwptablemgrs.Add(obj.id, obj); // Use obj.id as the key and obj (the LiveWallpaperRecord) as the value } + + var userFrameData = await LoadZip("UserFrameTable.json", progress); + foreach (var record in userFrameData.records) + { + userFrameTable[record.id] = record; + } var albumResourceTable = await LoadZip("AlbumResourceTable.json", progress); foreach (var obj in albumResourceTable.records) diff --git a/EpinelPS/GameData/JsonStaticData.cs b/EpinelPS/GameData/JsonStaticData.cs index 29bd76a..baad90f 100644 --- a/EpinelPS/GameData/JsonStaticData.cs +++ b/EpinelPS/GameData/JsonStaticData.cs @@ -299,5 +299,23 @@ { public List records; } + + public class UserFrameTableRecord + { + public int id; + public string resource_id; + public string tab_type; + public string user_profile_type; + public string filter_type; + public int order; + public string name_localkey; + public string description_localkey; + public bool is_sub_resource_prism; + } + + public class UserFrameTable + { + public List records; + } } diff --git a/EpinelPS/LobbyServer/Msgs/Event/ListEvents.cs b/EpinelPS/LobbyServer/Msgs/Event/ListEvents.cs index b3f2f10..be49f02 100644 --- a/EpinelPS/LobbyServer/Msgs/Event/ListEvents.cs +++ b/EpinelPS/LobbyServer/Msgs/Event/ListEvents.cs @@ -206,6 +206,16 @@ namespace EpinelPS.LobbyServer.Msgs.Event EventEndDate = DateTime.Now.AddDays(20).Ticks, EventDisableDate = DateTime.Now.AddDays(20).Ticks, }); + // banner for cinderella i think + response.EventList.Add(new NetEventData() + { + Id = 70070, + EventSystemType = 6, + EventVisibleDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)).Ticks, + EventStartDate = DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)).Ticks, + EventEndDate = DateTime.Now.AddDays(20).Ticks, + EventDisableDate = DateTime.Now.AddDays(20).Ticks, + }); diff --git a/EpinelPS/LobbyServer/Msgs/User/GetProfileFrame.cs b/EpinelPS/LobbyServer/Msgs/User/GetProfileFrame.cs index 19d9320..161425d 100644 --- a/EpinelPS/LobbyServer/Msgs/User/GetProfileFrame.cs +++ b/EpinelPS/LobbyServer/Msgs/User/GetProfileFrame.cs @@ -1,4 +1,5 @@ using EpinelPS.Utils; +using EpinelPS.StaticInfo; namespace EpinelPS.LobbyServer.Msgs.User { @@ -10,7 +11,10 @@ namespace EpinelPS.LobbyServer.Msgs.User var req = await ReadData(); var response = new ResGetProfileFrame(); - // TODO + foreach (var frameRecord in GameData.Instance.userFrameTable.Values) + { + response.Frames.Add(frameRecord.id); + } await WriteDataAsync(response); }