예제 #1
0
        public void CommandChargeMoney(int consoleNetId, string charName, int money)
        {
            var charId = EM_Character.s_instance.GetCharIdByName(charName);

            if (charId == -1)
            {
                m_networkService.SendServerCommand(SC_ConsoleFail.Instance(consoleNetId, "角色名有误"));
                return;
            }
            GL_Wallet.s_instance.NotifyChargeMoney(charId, money);
            m_networkService.SendServerCommand(SC_ConsoleSuccess.Instance(consoleNetId));
        }
예제 #2
0
        public void CommandGainCurrencyByName(int consoleNetId, string name, CurrencyType type, long dC)
        {
            var charId = EM_Character.s_instance.GetCharIdByName(name);

            if (charId == -1)
            {
                m_networkService.SendServerCommand(SC_ConsoleFail.Instance(consoleNetId, "角色名有误"));
                return;
            }
            var netId = EM_Character.s_instance.GetNetIdByCharId(charId);

            if (netId != -1)
            {
                GL_Wallet.s_instance.NotifyUpdateCurrencyOnline(netId, charId, type, dC);
            }
            else
            {
                GL_Wallet.s_instance.NotifyUpdateCurrencyOffline(charId, type, dC);
            }
            m_networkService.SendServerCommand(SC_ConsoleSuccess.Instance(consoleNetId));
        }
예제 #3
0
 public void CommandDeleteNotice(int netId, int id)
 {
     GL_Notice.s_instance.NotifyDeleteNotice(id);
     m_networkService.SendServerCommand(SC_ConsoleSuccess.Instance(netId));
 }
예제 #4
0
 public void CommandReleaseNotice(int netId, string title, string detail)
 {
     GL_Notice.s_instance.NotifyReleaseNotice(title, detail);
     m_networkService.SendServerCommand(SC_ConsoleSuccess.Instance(netId));
 }