//发送存钱消息
        public int SaveMoneyToBank(int amount)
        {
            if (amount == 0)
            {
                return(0);
            }

            CCharacterData pCharData = CObjectManager.Instance.getPlayerMySelf().GetCharacterData();

            if (pCharData != null)
            {
                if ((pCharData.Get_Money()) >= amount)
                {
                    byte        SaveType = (byte)CGBankMoney.OPtype.SAVE_MONEY;
                    CGBankMoney msg      = new CGBankMoney();
                    msg.SaveType    = (SaveType);
                    msg.AmountMoney = (amount);
                    NetManager.GetNetManager().SendPacket(msg);
                }
                else
                {
                    CEventSystem.Instance.PushEvent(GAME_EVENT_ID.GE_INFO_INTERCOURSE, "存钱数目超过身上金钱数目");
                }
            }
            return(0);
        }
        public BankMoney GetBagMoney()
        {
            CCharacterData pCharData = CObjectManager.Instance.getPlayerMySelf().GetCharacterData();

            int nMoney = 0;

            if (pCharData != null)
            {
                nMoney = pCharData.Get_Money();
            }
            return(TransformCoin(nMoney));
        }