void OnChatReceived(ClientPeer peer, OperationRequest operationRequest, SendParameters sendParameters)
        {
            var chatData = BinSerializer.ConvertData <ProtoData.ChatData>(operationRequest.Parameters);

            if (chatData.msg.IndexOf("/gold ") == 0)
            {
                BigInteger gold = int.Parse(chatData.msg.Replace("/gold ", ""));
                peer.userAgent.UserAssetData.AddGold(gold);
                UserAssetEvent.OnUpdateResource(peer);
                return;
            }

            ChatEvent.OnUpdateChat(peer, chatData);
        }
 void OnRequestResourceReceived(ClientPeer peer, OperationRequest operationRequest, SendParameters sendParameters)
 {
     UserAssetEvent.OnUpdateResource(peer);
 }