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

            NFMsg.PropertyFloat xPropertyFloat = new NFMsg.PropertyFloat();
            xPropertyFloat.PropertyName = ByteString.CopyFromUtf8(strPropertyName);
            xPropertyFloat.Data         = newVar;
            xData.PropertyList.Add(xPropertyFloat);

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

            Debug.Log("send upload Float");
            SendMsg((int)NFMsg.EGameMsgID.AckPropertyFloat, mxBody);
        }
Exemple #2
0
        public void RequirePropertyFloat(NFrame.NFGUID objectID, string strPropertyName, NFDataList.TData newVar)
        {
            NFMsg.ObjectPropertyFloat xData = new NFMsg.ObjectPropertyFloat();
            xData.player_id = NFNetController.NFToPB(objectID);

            NFMsg.PropertyFloat xPropertyFloat = new NFMsg.PropertyFloat();
            xPropertyFloat.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName);
            xPropertyFloat.data          = (float)newVar.FloatVal();
            xData.property_list.Add(xPropertyFloat);

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

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

        NFMsg.PropertyFloat xPropertyFloat = new NFMsg.PropertyFloat();
        xPropertyFloat.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName);
        xPropertyFloat.data          = (float)newVar.FloatVal();
        xData.property_list.Add(xPropertyFloat);

        MemoryStream stream = new MemoryStream();

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

        NFMsg.PropertyFloat xPropertyFloat = new NFMsg.PropertyFloat();
        xPropertyFloat.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName);
        xPropertyFloat.data = (float)newVar.FloatVal();
        xData.property_list.Add(xPropertyFloat);

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