コード例 #1
0
ファイル: NFNetModule.cs プロジェクト: isoundy000/NFUnitySDK
        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);
        }