main quest works

This commit is contained in:
Mikhail Thompson
2024-06-29 15:11:42 +03:00
parent 1229104086
commit 846b72ce9d
21 changed files with 299 additions and 49 deletions

View File

@@ -0,0 +1,24 @@
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nksrv.LobbyServer.Msgs.User
{
[PacketPath("/user/setprofileicon")]
public class SetProfileIcon : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var req = await ReadData<ReqSetProfileIcon>();
var user = GetUser();
user.ProfileIconId = req.Icon;
user.ProfileIconIsPrism = req.IsPrism;
JsonDb.Save();
var response = new ResSetProfileIcon();
WriteData(response);
}
}
}