Inheritance: global::ProtoBuf.IExtensible
Beispiel #1
0
        public void RequirePropertyObject(NFGUID objectID, string strPropertyName, NFGUID newVar)
        {
            NFMsg.ObjectPropertyObject xData = new NFMsg.ObjectPropertyObject();
            xData.PlayerId = mHelpModule.NFToPB(objectID);

            NFMsg.PropertyObject xPropertyObject = new NFMsg.PropertyObject();
            xPropertyObject.PropertyName = ByteString.CopyFromUtf8(strPropertyName);
            xPropertyObject.Data         = mHelpModule.NFToPB(newVar);
            xData.PropertyList.Add(xPropertyObject);

            mxBody.SetLength(0);
            xData.WriteTo(mxBody);

            Debug.Log("send upload Object");
            SendMsg((int)NFMsg.EGameMsgID.AckPropertyObject, mxBody);
        }
Beispiel #2
0
        public void RequirePropertyObject(NFrame.NFGUID objectID, string strPropertyName, NFDataList.TData newVar)
        {
            NFMsg.ObjectPropertyObject xData = new NFMsg.ObjectPropertyObject();
            xData.player_id = NFNetController.NFToPB(objectID);

            NFMsg.PropertyObject xPropertyObject = new NFMsg.PropertyObject();
            xPropertyObject.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName);
            xPropertyObject.data          = NFNetController.NFToPB(newVar.ObjectVal());
            xData.property_list.Add(xPropertyObject);

            mxBody.SetLength(0);
            mxSerializer.Serialize(mxBody, xData);

            Debug.Log("send upload Object");
            NFNetController.Instance.mxNetSender.SendMsg(objectID, NFMsg.EGameMsgID.EGMI_ACK_PROPERTY_OBJECT, mxBody);
        }
    public void RequirePropertyObject(NFrame.NFGUID objectID, string strPropertyName, NFIDataList.TData newVar)
    {
        NFMsg.ObjectPropertyObject xData = new NFMsg.ObjectPropertyObject();
        xData.player_id = NFBinarySendLogic.NFToPB(objectID);

        NFMsg.PropertyObject xPropertyObject = new NFMsg.PropertyObject();
        xPropertyObject.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName);
        xPropertyObject.data          = NFBinarySendLogic.NFToPB(newVar.ObjectVal());
        xData.property_list.Add(xPropertyObject);

        MemoryStream stream = new MemoryStream();

        Serializer.Serialize <NFMsg.ObjectPropertyObject>(stream, xData);
        Debug.Log("send upload Object");
        NFStart.Instance.GetFocusSender().SendMsg(objectID, NFMsg.EGameMsgID.EGMI_ACK_PROPERTY_OBJECT, stream);
    }
    public void RequirePropertyObject(NFrame.NFGUID objectID, string strPropertyName, NFIDataList.TData newVar)
    {
        NFMsg.ObjectPropertyObject xData = new NFMsg.ObjectPropertyObject();
        xData.player_id = NFBinarySendLogic.NFToPB(objectID);

        NFMsg.PropertyObject xPropertyObject = new NFMsg.PropertyObject();
        xPropertyObject.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName);
        xPropertyObject.data = NFBinarySendLogic.NFToPB(newVar.ObjectVal());
        xData.property_list.Add(xPropertyObject);

        MemoryStream stream = new MemoryStream();
        Serializer.Serialize<NFMsg.ObjectPropertyObject>(stream, xData);
        Debug.Log("send upload Object");
        NFStart.Instance.GetFocusSender().SendMsg(objectID, NFMsg.EGameMsgID.EGMI_ACK_PROPERTY_OBJECT, stream);
    }