public void RequirePropertyVector2(NFGUID objectID, string strPropertyName, NFVector2 newVar) { NFMsg.ObjectPropertyVector2 xData = new NFMsg.ObjectPropertyVector2(); xData.PlayerId = mHelpModule.NFToPB(objectID); NFMsg.PropertyVector2 xProperty = new NFMsg.PropertyVector2(); xProperty.PropertyName = ByteString.CopyFromUtf8(strPropertyName); xProperty.Data = mHelpModule.NFToPB(newVar); xData.PropertyList.Add(xProperty); mxBody.SetLength(0); xData.WriteTo(mxBody); SendMsg((int)NFMsg.EGameMsgID.AckPropertyVector2, mxBody); }
public void RequirePropertyVector2(NFrame.NFGUID objectID, string strPropertyName, NFDataList.TData newVar) { NFMsg.ObjectPropertyVector2 xData = new NFMsg.ObjectPropertyVector2(); xData.player_id = NFNetController.NFToPB(objectID); NFMsg.PropertyVector2 xProperty = new NFMsg.PropertyVector2(); xProperty.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName); xProperty.data = NFNetController.NFToPB(newVar.Vector2Val()); xData.property_list.Add(xProperty); mxBody.SetLength(0); mxSerializer.Serialize(mxBody, xData); NFNetController.Instance.mxNetSender.SendMsg(objectID, NFMsg.EGameMsgID.EGMI_ACK_PROPERTY_VECTOR2, mxBody); }
public void RequirePropertyVector2(NFrame.NFGUID objectID, string strPropertyName, NFIDataList.TData newVar) { NFMsg.ObjectPropertyVector2 xData = new NFMsg.ObjectPropertyVector2(); xData.player_id = NFBinarySendLogic.NFToPB(objectID); NFMsg.PropertyVector2 xProperty = new NFMsg.PropertyVector2(); xProperty.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName); xProperty.data = NFBinarySendLogic.NFToPB(newVar.Vector2Val()); xData.property_list.Add(xProperty); MemoryStream stream = new MemoryStream(); Serializer.Serialize <NFMsg.ObjectPropertyVector2>(stream, xData); NFStart.Instance.GetFocusSender().SendMsg(objectID, NFMsg.EGameMsgID.EGMI_ACK_PROPERTY_VECTOR2, stream); }
public void RequirePropertyVector2(NFrame.NFGUID objectID, string strPropertyName, NFIDataList.TData newVar) { NFMsg.ObjectPropertyVector2 xData = new NFMsg.ObjectPropertyVector2(); xData.player_id = NFBinarySendLogic.NFToPB(objectID); NFMsg.PropertyVector2 xProperty = new NFMsg.PropertyVector2(); xProperty.property_name = System.Text.Encoding.Default.GetBytes(strPropertyName); xProperty.data = NFBinarySendLogic.NFToPB(newVar.Vector2Val()); xData.property_list.Add(xProperty); MemoryStream stream = new MemoryStream(); Serializer.Serialize<NFMsg.ObjectPropertyVector2>(stream, xData); NFStart.Instance.GetFocusSender().SendMsg(objectID, NFMsg.EGameMsgID.EGMI_ACK_PROPERTY_VECTOR2, stream); }