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(); 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; } } }