초기커밋
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class NotifyFriendLoginHandler
|
||||
{
|
||||
public void send_GS2C_NTF_LOGIN_TO_FRIEND(Player player, ServerMessage.Types.LoginNotiToFriend noti)
|
||||
{
|
||||
ClientToGame ntf_friend_login = new ClientToGame();
|
||||
ntf_friend_login.Message = new ClientToGameMessage();
|
||||
ntf_friend_login.Message.FriendLoginNoti = new();
|
||||
ntf_friend_login.Message.FriendLoginNoti.BaseInfo = new();
|
||||
ntf_friend_login.Message.FriendLoginNoti.BaseInfo.SenderId = noti.BaseInfo.SenderId;
|
||||
ntf_friend_login.Message.FriendLoginNoti.BaseInfo.SenderGuid = noti.BaseInfo.SenderGuid;
|
||||
ntf_friend_login.Message.FriendLoginNoti.BaseInfo.SenderNickName = noti.BaseInfo.SenderNickName;
|
||||
ntf_friend_login.Message.FriendLoginNoti.BaseInfo.SenderState = noti.BaseInfo.SenderState;
|
||||
ntf_friend_login.Message.FriendLoginNoti.BaseInfo.SenderMapId = noti.BaseInfo.SenderMapId;
|
||||
ntf_friend_login.Message.FriendLoginNoti.LocationInfo = noti.LocationInfo;
|
||||
|
||||
if (false == GameServerApp.getServerLogic().onSendPacket(player, ntf_friend_login))
|
||||
{
|
||||
Log.getLogger().error("Failed to send_GS2C_NTF_LOGIN_TO_FRIEND !!!");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user