implement more things

This commit is contained in:
Mikhail Thompson
2024-06-27 16:38:42 +03:00
parent 16cece6560
commit 4ffb238c6e
10 changed files with 272 additions and 16 deletions

View File

@@ -0,0 +1,29 @@
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nksrv.LobbyServer.Msgs.Character
{
[PacketPath("/character/synchrodevice/get")]
public class GetSynchrodevice : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var req = await ReadData<ReqGetSynchroData>();
var response = new ReqGetSynchroData();
response.Synchro = new NetUserSynchroData();
response.Synchro.SynchroLv = 1;
response.Synchro.Slots.Add(new NetSynchroSlot() { Slot = 1 });
response.Synchro.Slots.Add(new NetSynchroSlot() { Slot = 2 });
response.Synchro.Slots.Add(new NetSynchroSlot() { Slot = 3 });
response.Synchro.Slots.Add(new NetSynchroSlot() { Slot = 4 });
response.Synchro.Slots.Add(new NetSynchroSlot() { Slot = 5 });
// TODO: Validate response from real server and pull info from user info
WriteData(response);
}
}
}