forked from PGR/ascnet
GuideOpenRequest adding guide entry test
This commit is contained in:
parent
0c0d6a3f32
commit
c69b03ce6f
|
@ -40,6 +40,10 @@ namespace AscNet.GameServer.Handlers
|
|||
[RequestPacketHandler("GuideOpenRequest")]
|
||||
public static void GuideOpenRequestHandler(Session session, Packet.Request packet)
|
||||
{
|
||||
GuideCompleteRequest request = packet.Deserialize<GuideCompleteRequest>();
|
||||
|
||||
session.player.PlayerData.GuideData.Add(request.GuideGroupId);
|
||||
session.SendPush(new NotifyGuide() { GuideGroupId = request.GuideGroupId });
|
||||
session.SendResponse(new GuideOpenResponse(), packet.Id);
|
||||
}
|
||||
|
||||
|
|
|
@ -106,8 +106,8 @@ namespace AscNet.SDKServer.Controllers
|
|||
{
|
||||
Id = "1",
|
||||
ModifyTime = DateTimeOffset.Now.ToUnixTimeSeconds(),
|
||||
Content = new ScrollPicNotice.NoticeContent[]
|
||||
{
|
||||
Content =
|
||||
[
|
||||
new ScrollPicNotice.NoticeContent()
|
||||
{
|
||||
Id = 0,
|
||||
|
@ -123,7 +123,7 @@ namespace AscNet.SDKServer.Controllers
|
|||
AppearanceTime = Array.Empty<dynamic>(),
|
||||
DisappearanceCondition = Array.Empty<dynamic>(),
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
string serializedObject = JsonConvert.SerializeObject(notice);
|
||||
|
|
Loading…
Reference in New Issue