using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static ClientToGameMessage.Types; namespace GameServer { public static class MoneyNotifyHelper { public static void send_GS2C_NTF_CURRENCY_MAX_ALERT(Player player, CurrencyType currencyType, double maxMoney) { var ntf = new GS2C_NTF_CURRENCY_MAX_ALERT(); ntf.CurrencyType = currencyType; ntf.MaxMoney = maxMoney; ClientToGame packet = new ClientToGame(); packet.Message = new ClientToGameMessage(); packet.Message.NtfCurrencyMaxAlert = ntf; player.sendPacket(packet); } public static bool send_GS2C_NTF_BEAM_CHARGE(this Player player) { var noti_packet = new ClientToGame(); noti_packet.Message = new(); noti_packet.Message.NtfBeamCharge = new(); if (false == GameServerApp.getServerLogic().onSendPacket(player, noti_packet)) { return false; } return true; } } }