초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
namespace GameServer;
public class NotifyFriendRequestHandler
{
public void send_GS2C_NTF_FRIEND_REQUEST(ServerMessage.Types.FriendRequestNoti noti)
{
var player_manager = GameServerApp.getServerLogic().getPlayerManager();
ArgumentNullException.ThrowIfNull(player_manager);
if (false == player_manager.tryGetUserByPrimaryKey(noti.RequestInfo.Guid, out var player))
{
Log.getLogger().warn($"{noti.RequestInfo.Guid} user not exist this Server");
return;
}
ClientToGame clientToGame = new();
clientToGame.Message = new();
clientToGame.Message.FriendRequestNoti = new();
clientToGame.Message.FriendRequestNoti.RequestInfo = new();
clientToGame.Message.FriendRequestNoti.RequestInfo.Guid = noti.RequestInfo.Guid;
clientToGame.Message.FriendRequestNoti.RequestInfo.NickName = noti.RequestInfo.NickName;
clientToGame.Message.FriendRequestNoti.RequestInfo.IsNew = noti.RequestInfo.IsNew;
clientToGame.Message.FriendRequestNoti.RequestInfo.RequestTime = noti.RequestInfo.RequestTime;
GameServerApp.getServerLogic().onSendPacket(player, clientToGame);
}
}