forked from PGR/ascnet
Merge branch 'master' of https://git.lewd.wtf/pgr/ascnet
This commit is contained in:
commit
dd8582e4d8
|
@ -9,6 +9,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="Handlers\CommunicationModule.cs~RF42bcb29.TMP" />
|
<None Remove="Handlers\CommunicationModule.cs~RF42bcb29.TMP" />
|
||||||
<None Remove="Handlers\SignInModule.cs~RF3f1e071.TMP" />
|
<None Remove="Handlers\SignInModule.cs~RF3f1e071.TMP" />
|
||||||
|
<None Remove="Handlers\SignInModule.cs~RF46194f0.TMP" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -41,6 +41,14 @@ namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
NotifyLogin notifyLogin = JsonConvert.DeserializeObject<NotifyLogin>(File.ReadAllText("Data/NotifyLogin.json"))!;
|
NotifyLogin notifyLogin = JsonConvert.DeserializeObject<NotifyLogin>(File.ReadAllText("Data/NotifyLogin.json"))!;
|
||||||
session.SendPush(notifyLogin);
|
session.SendPush(notifyLogin);
|
||||||
|
|
||||||
|
// NEEDED to not softlock on stage selections!
|
||||||
|
session.SendPush("NotifyFubenPrequelData", MessagePackSerializer.ConvertFromJson("{\"FubenPrequelData\": {\"RewardedStages\": [13010111, 13010112, 13010113, 13010211, 13010212, 13010213, 13010214, 13010215, 13010216, 13010311, 13010312, 13010313, 13010911, 13010912, 13010913, 13010414, 13010413, 13010415, 13010411, 13010412, 13010416, 13010316, 13010314, 13010315, 13010115, 13010116, 13010114, 13011011, 13011012, 13011013, 13011014, 13011015, 13011016], \"UnlockChallengeStages\": []}}"));
|
||||||
|
session.SendPush("NotifyPrequelChallengeRefreshTime", MessagePackSerializer.ConvertFromJson("{\"NextRefreshTime\": 1690873200}"));
|
||||||
|
session.SendPush("NotifyMainLineActivity", MessagePackSerializer.ConvertFromJson("{\"Chapters\": [1019], \"BfrtChapter\": 0, \"EndTime\": 1692669540, \"HideChapterBeginTime\": 0}"));
|
||||||
|
session.SendPush("NotifyDailyFubenLoginData", MessagePackSerializer.ConvertFromJson("{\"RefreshTime\": 1690873200, \"Records\": []}"));
|
||||||
|
session.SendPush("NotifyBriefStoryData", MessagePackSerializer.ConvertFromJson("{\"FinishedIds\": []}"));
|
||||||
|
session.SendPush("NotifyFubenBossSingleData", MessagePackSerializer.ConvertFromJson("{\"FubenBossSingleData\": {\"ActivityNo\": 108, \"TotalScore\": 0, \"MaxScore\": 0, \"OldLevelType\": 1, \"LevelType\": 1, \"ChallengeCount\": 0, \"RemainTime\": 576710, \"AutoFightCount\": 0, \"CharacterPoints\": {}, \"HistoryList\": [{\"StageId\": 30000101, \"Score\": 12160, \"Characters\": [1021001, 1031003, 1011002], \"Partners\": []}, {\"StageId\": 30000102, \"Score\": 21438, \"Characters\": [1021001, 1031003, 1011002], \"Partners\": []}, {\"StageId\": 30000201, \"Score\": 12160, \"Characters\": [1021001, 1031003, 1041002], \"Partners\": []}, {\"StageId\": 30000202, \"Score\": 21329, \"Characters\": [1051001, 1021002, 1041002], \"Partners\": []}, {\"StageId\": 30000203, \"Score\": 44760, \"Characters\": [1021001, 1011002, 1081002], \"Partners\": []}, {\"StageId\": 30000204, \"Score\": 82792, \"Characters\": [1021001, 1031003, 1041002], \"Partners\": []}, {\"StageId\": 30000205, \"Score\": 69057, \"Characters\": [1021001, 1031003, 1041002], \"Partners\": []}], \"RewardIds\": [], \"RankPlatform\": 0, \"BossList\": [103, 105], \"TrialStageInfoList\": []}}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,15 @@
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
|
using MessagePack;
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
[MessagePackObject(true)]
|
||||||
public class GuideGroupFinishRequest
|
public class GuideGroupFinishRequest
|
||||||
{
|
{
|
||||||
public int GroupId;
|
public int GroupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MessagePackObject(true)]
|
||||||
public class GuideGroupFinishResponse
|
public class GuideGroupFinishResponse
|
||||||
{
|
{
|
||||||
public int Code;
|
public int Code;
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class ShopModule
|
||||||
|
{
|
||||||
|
/* TODO: Needs types
|
||||||
|
[RequestPacketHandler("GetShopBaseInfoRequest")]
|
||||||
|
public static void GetShopBaseInfoRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
[RequestPacketHandler("GetShopInfoReceiveRequest")]
|
||||||
|
public static void GetShopInfoReceiveRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
GetShopInfoRequest req = MessagePackSerializer.Deserialize<GetShopInfoRequest>(packet.Content);
|
||||||
|
|
||||||
|
GetShopInfoResponse rsp = new GetShopInfoResponse()
|
||||||
|
{
|
||||||
|
Code = 0,
|
||||||
|
ClientShop = { }
|
||||||
|
};
|
||||||
|
|
||||||
|
session.SendResponse(rsp, packet.Id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -165,7 +165,7 @@ namespace AscNet.GameServer
|
||||||
log.Info(packet.Name);
|
log.Info(packet.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendResponse<T>(T response, int clientSeq = 0)
|
public void SendResponse<T>(T response, int clientSeq = 0) where T : new()
|
||||||
{
|
{
|
||||||
Packet.Response packet = new()
|
Packet.Response packet = new()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue