///<summary> /// Writes this HLAattributeHandleValuePair to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { HLAattributeHandleValuePair attributeHandleValue = (HLAattributeHandleValuePair)obj; writer.WriteHLAinteger64BE(attributeHandleValue.AttributeHandle); serializerManager.GetSerializer(attributeHandleValue.AttributeHandle).Serialize(writer, attributeHandleValue.AttributeValue); }
///<summary> Writes this HLAupdateAttributeValuesReliableWithTimeMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { base.Serialize(writer, obj); //byte[] logicalTimeBytesArray = ((HLAupdateAttributeValuesReliableWithTimeMessage)obj).LogicalTime; //writer.WriteHLAopaqueData(logicalTimeBytesArray); }
///<summary> /// Writes this HLAfederate.HLAtimeRegulating to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAtimeRegulating) { try { writer.WriteHLAboolean((bool)HLAtimeRegulating); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
public override void Serialize(HlaEncodingWriter writer, object moveDirection) { try { MoveDirectionXrtiSerializer.Serialize(writer, (Actor.MoveDirection)moveDirection); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAisJoined to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAisJoined) { try { writer.WriteHLAboolean((bool)HLAisJoined); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAtimeManagerState to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAtimeManagerState"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAtimeManagerState) { try { HLAtimeStateXrtiSerializer.Serialize(writer, (HLAtimeState)HLAtimeManagerState); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAconveyRegionDesignatorSets to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAconveyRegionDesignatorSets"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAconveyRegionDesignatorSets) { try { HLAswitchXrtiSerializer.Serialize(writer, (HLAswitch)HLAconveyRegionDesignatorSets); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAFDDID to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAFDDID"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAFDDID) { try { writer.WriteHLAunicodeString((String)HLAFDDID); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAfederateType to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAfederateType) { try { writer.WriteHLAunicodeString((String)HLAfederateType); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAautoProvide to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAautoProvide"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAautoProvide) { try { HLAswitchXrtiSerializer.Serialize(writer, (HLAswitch)HLAautoProvide); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAautoProvide to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAautoProvide"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAautoProvide) { try { HLAswitchXrtiSerializer.Serialize(writer, (HLAswitch)HLAautoProvide); } catch(IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
public override void Serialize(HlaEncodingWriter writer, object msg) { if (writer == null) { throw new ArgumentNullException("serialization writer"); } writer.WriteHLAinteger32BE(MAGIC_NUMBER); writer.WriteHLAinteger32BE(hlaEncodingModelVersion); baseSerializer.Serialize(writer, msg); writer.Flush(); }
///<summary> /// Writes this Sxtafederate.HLApendingTime to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLApendingTime) { try { IHlaEncodingSerializer serializer = serializerManager.GetSerializer(typeof(ILogicalTime)); serializer.Serialize(writer, HLApendingTime); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this HLAdestroyFederationExecutionMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); writer.WriteHLAunicodeString(((HLAdestroyFederationExecutionMessage) obj).FederationExecutionName); } catch(System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
public override void Serialize(HlaEncodingWriter writer, object msg) { if (writer == null) { throw new ArgumentNullException("serialization writer"); } writer.WriteHLAinteger32BE(MAGIC_NUMBER); writer.WriteHLAinteger32BE(hlaEncodingModelVersion); baseSerializer.Serialize(writer, msg); writer.Flush(); }
///<summary> Writes this CommunicationMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { //base.Serialize(writer, obj); writer.WriteHLAunicodeString(((CommunicationMessage)obj).Message); } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAGALT to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAGALT) { try { IHlaEncodingSerializer serializer = serializerManager.GetSerializer(typeof(ILogicalTime)); serializer.Serialize(writer, HLAGALT); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAlogicalTime to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAlogicalTime) { try { ILogicalTime logicalTime = (ILogicalTime)HLAlogicalTime; byte[] logicalTimeBytesArray = new byte[logicalTime.EncodedLength()]; logicalTime.Encode(logicalTimeBytesArray, 0); writer.WriteHLAopaqueData(logicalTimeBytesArray); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this ILogicalTimeInterval to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederationName"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAlogicalTimeInterval) { try { ILogicalTimeInterval logicalTimeInterval = (ILogicalTimeInterval)HLAlogicalTimeInterval; byte[] logicalTimeIntervalBytesArray = new byte[logicalTimeInterval.EncodedLength()]; logicalTimeInterval.Encode(logicalTimeIntervalBytesArray, 0); writer.WriteHLAopaqueData(logicalTimeIntervalBytesArray); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAnextSaveTime to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAnextSaveTime"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAnextSaveTime) { try { writer.WriteHLAinteger32BE(((byte[])HLAnextSaveTime).Length); for (int i = 0; i < ((byte[])HLAnextSaveTime).Length; i++) { writer.WriteHLAoctet(((byte[])HLAnextSaveTime)[i]); } } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAlastSaveTime to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAlastSaveTime"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAlastSaveTime) { try { writer.WriteHLAinteger32BE(((byte[])HLAlastSaveTime).Length); for(int i=0;i< ((byte[])HLAlastSaveTime).Length;i++) { writer.WriteHLAoctet(((byte[])HLAlastSaveTime)[i]); } } catch(IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAfederateHandle to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederateHandle"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAfederateHandle) { // PATCH ANGEL: Es necesario realizar un cast del object primero a HLAfederateHandle y luego a byte[] para que funcione correctamente (1º Linea de código) // Se debería incluir esta modificación en el Dynamic Compiler (Lo comentado es lo que generaba). try { byte[] handle = ((byte[])((HLAfederateHandle)HLAfederateHandle)); writer.WriteHLAinteger32BE(handle.Length); // Como argumento: ((byte[])HLAfederateHandle).Length for (int i = 0; i < handle.Length; i++) // Condición del for: i < ((byte[])HLAfederateHandle).Length { writer.WriteHLAoctet(handle[i]); // Como argumento: ((byte[])HLAfederateHandle)[i] } } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederate.HLAfederateHandle to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederateHandle"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAfederateHandle) { // PATCH ANGEL: Es necesario realizar un cast del object primero a HLAfederateHandle y luego a byte[] para que funcione correctamente (1º Linea de código) // Se debería incluir esta modificación en el Dynamic Compiler (Lo comentado es lo que generaba). try { byte[] handle = ((byte[])((HLAfederateHandle)HLAfederateHandle)); writer.WriteHLAinteger32BE(handle.Length); // Como argumento: ((byte[])HLAfederateHandle).Length for (int i = 0; i < handle.Length; i++) // Condición del for: i < ((byte[])HLAfederateHandle).Length { writer.WriteHLAoctet(handle[i]); // Como argumento: ((byte[])HLAfederateHandle)[i] } } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAfederatesinFederation to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederatesinFederation"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAfederatesinFederation) { try { writer.WriteHLAinteger32BE(((byte[][])HLAfederatesinFederation).Length); for(int i=0;i< ((byte[][])HLAfederatesinFederation).Length;i++) { writer.WriteHLAinteger32BE((((byte[][])HLAfederatesinFederation)[i]).Length); for(int j=0;j< (((byte[][])HLAfederatesinFederation)[i]).Length;j++) { writer.WriteHLAoctet((((byte[][])HLAfederatesinFederation)[i])[j]); } } } catch(IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAfederation.HLAfederatesinFederation to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="HLAfederatesinFederation"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object HLAfederatesinFederation) { try { writer.WriteHLAinteger32BE(((byte[][])HLAfederatesinFederation).Length); for (int i = 0; i < ((byte[][])HLAfederatesinFederation).Length; i++) { writer.WriteHLAinteger32BE((((byte[][])HLAfederatesinFederation)[i]).Length); for (int j = 0; j < (((byte[][])HLAfederatesinFederation)[i]).Length; j++) { writer.WriteHLAoctet((((byte[][])HLAfederatesinFederation)[i])[j]); } } } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this ExternalCountry.Position to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="Position"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object Position) { try { Vector3FloatStructXrtiSerializer.Serialize(writer, (Vector3FloatStruct)Position); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this Vector3FloatStruct to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public static void Serialize(HlaEncodingWriter writer, Vector3FloatStruct obj) { writer.WriteHLAfloat32BE(obj.XComponent); writer.WriteHLAfloat32BE(obj.YComponent); writer.WriteHLAfloat32BE(obj.ZComponent); }
///<summary> Writes this HLAupdateAttributeValuesReliableMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { base.Serialize(writer, obj); }
///<summary> Writes this HLAupdateAttributeValuesMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); writer.WriteHLAinteger64BE(((HLAupdateAttributeValuesMessage)obj).ObjectInstanceHandle); writer.WriteHLAinteger32BE((((HLAupdateAttributeValuesMessage)obj).AttributeHandleValuePairList).Length); for (int i = 0; i < (((HLAupdateAttributeValuesMessage)obj).AttributeHandleValuePairList).Length; i++) { hlaAttributeHandleValuePairXrtiSerializer.Serialize(writer, ((HLAupdateAttributeValuesMessage)obj).AttributeHandleValuePairList[i]); } } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this BoxInHouseMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); byte[] logicalTimeBytesArray = ((BoxInHouseMessage)obj).Time; writer.WriteHLAopaqueData(logicalTimeBytesArray); } catch(System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
public abstract void Serialize(HlaEncodingWriter writer, object msg);
///<summary> /// Writes this HLAattributeHandleValuePair to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { HLAattributeHandleValuePair attributeHandleValue = (HLAattributeHandleValuePair)obj; writer.WriteHLAinteger64BE(attributeHandleValue.AttributeHandle); serializerManager.GetSerializer(attributeHandleValue.AttributeHandle).Serialize(writer, attributeHandleValue.AttributeValue); }
///<summary> Writes this HLAsubscribeObjectClassAttributesMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); IObjectClassHandle objectClass = ((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass; byte[] objectClassByteArray = new byte[objectClass.EncodedLength()]; objectClass.Encode(objectClassByteArray, 0); writer.WriteHLAopaqueData(objectClassByteArray); IAttributeHandleSet attributeHandleSet = ((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList; writer.WriteHLAinteger32BE(attributeHandleSet.Count); foreach (IAttributeHandle attributeHandle in attributeHandleSet) { byte[] attributeHandleByteArray = new byte[attributeHandle.EncodedLength()]; attributeHandle.Encode(attributeHandleByteArray, 0); writer.WriteHLAopaqueData(attributeHandleByteArray); } writer.WriteHLAboolean(((HLAsubscribeObjectClassAttributesMessage)obj).HLAactive); /* writer.WriteHLAinteger32BE((((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass).Length); for (int i = 0; i < (((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass).Length; i++) { writer.WriteHLAoctet((((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass)[i]); } writer.WriteHLAinteger32BE((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList).Length); for (int i = 0; i < (((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList).Length; i++) { writer.WriteHLAinteger32BE(((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList)[i]).Length); for (int j = 0; j < ((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList)[i]).Length; j++) { writer.WriteHLAoctet(((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList)[i])[j]); } } writer.WriteHLAboolean(((HLAsubscribeObjectClassAttributesMessage)obj).HLAactive); */ } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this HLArequestAttributeValueUpdateMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { writer.WriteHLAinteger64BE(((HLArequestAttributeValueUpdateMessage)obj).ObjectInstanceHandle); writer.WriteHLAinteger32BE(((HLArequestAttributeValueUpdateMessage)obj).AttributeHandleList.Length); for (int i = 0; i < ((HLArequestAttributeValueUpdateMessage)obj).AttributeHandleList.Length; i++) { writer.WriteHLAinteger64BE(((HLArequestAttributeValueUpdateMessage)obj).AttributeHandleList[i]); } } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this HLAfederateMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); int val = (((HLAfederateMessage)obj).HLAfederate).data; writer.WriteHLAinteger32BE(val); /* writer.WriteHLAinteger32BE((((HLAfederateMessage)obj).HLAfederate).Length); for (int i = 0; i < (((HLAfederateMessage)obj).HLAfederate).Length; i++) { writer.WriteHLAoctet((((HLAfederateMessage)obj).HLAfederate)[i]); } */ } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this HLAparameterHandleValuePair to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { BaseInteractionMessage msg = obj as BaseInteractionMessage; writer.WriteHLAinteger64BE(msg.FederateHandle); writer.WriteHLAinteger64BE(msg.InteractionIndex); writer.WriteHLAinteger64BE(msg.FederationExecutionHandle); writer.WriteHLAopaqueData(msg.UserSuppliedTag); writer.WriteHLAinteger64BE(msg.InteractionClassHandle); IHlaEncodingSerializer serializer = serializerManager.GetSerializer(msg.InteractionClassHandle); if (serializer != null && !this.Equals(serializer)) { serializer.Serialize(writer, obj); } }
///<summary> Writes this HlaGenericInteractionMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { writer.WriteHLAinteger32BE(((HLAGenericInteractionMessage)obj).ParameterList.Length); for (int i = 0; i < ((HLAGenericInteractionMessage)obj).ParameterList.Length; i++) { HLAparameterHandleValuePairXrtiSerializer.Serialize(writer, ((HLAGenericInteractionMessage)obj).ParameterList[i]); } } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary>Writes this HLAtimeState to the specified stream.</summary> ///<param name="writer"> the stream to write to</param> ///<exception cref="IOException"> if an error occurs</exception> public static void Serialize(HlaEncodingWriter writer, HLAtimeState val) { writer.WriteHLAinteger32BE((int)val); }
///<summary> Writes this HLAreportHandlesMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { writer.WriteHLAinteger64BE(((HLAreportHandlesMessage)obj).BlockStart); writer.WriteHLAinteger64BE(((HLAreportHandlesMessage)obj).BlockSize); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this Boid.Velocity to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="Velocity"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object Velocity) { try { Vector3XrtiSerializer.Serialize(writer, (Vector3)Velocity); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
public static void Serialize(HlaEncodingWriter writer, Actor.MoveDirection val) { writer.WriteHLAinteger32BE((int)val); }
///<summary> /// Writes this Home.PosX to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="PosX"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object PosX) { try { writer.WriteHLAinteger32BE((int)PosX); } catch(IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }