초기커밋
This commit is contained in:
31
GameServer/Contents/Location/Helper/LocationNotifyHelper.cs
Normal file
31
GameServer/Contents/Location/Helper/LocationNotifyHelper.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
internal static class LocationNotifyHelper
|
||||
{
|
||||
public static bool send_S2C_NTF_SET_LOCATION(this Player player)
|
||||
{
|
||||
var location_action = player.getEntityAction<LocationAction>();
|
||||
NullReferenceCheckHelper.throwIfNull(location_action, () => $"location_action is null !!! - {player.toBasicString()}");
|
||||
|
||||
var ntf_packet = new ClientToGame();
|
||||
ntf_packet.Message = new();
|
||||
ntf_packet.Message.SetLocation = new();
|
||||
|
||||
ntf_packet.Message.SetLocation.Pos = location_action.getCurrentPos();
|
||||
|
||||
if (false == GameServerApp.getServerLogic().onSendPacket(player, ntf_packet))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user