public void GenericCommandRequest(IOutBitStream bitstream, GenericCommandRequest data) { var converted_name = coherenceToUnityConverters.FromUnityFixedString64(data.name); bitstream.WriteShortString(converted_name); bitstream.WriteIntegerRange(data.paramInt1, 15, -9999); bitstream.WriteIntegerRange(data.paramInt2, 15, -9999); bitstream.WriteIntegerRange(data.paramInt3, 15, -9999); bitstream.WriteIntegerRange(data.paramInt4, 15, -9999); var converted_paramFloat1 = coherenceToUnityConverters.FromUnityfloat(data.paramFloat1); bitstream.WriteFixedPoint(converted_paramFloat1, 24, 2400); var converted_paramFloat2 = coherenceToUnityConverters.FromUnityfloat(data.paramFloat2); bitstream.WriteFixedPoint(converted_paramFloat2, 24, 2400); var converted_paramFloat3 = coherenceToUnityConverters.FromUnityfloat(data.paramFloat3); bitstream.WriteFixedPoint(converted_paramFloat3, 24, 2400); var converted_paramFloat4 = coherenceToUnityConverters.FromUnityfloat(data.paramFloat4); bitstream.WriteFixedPoint(converted_paramFloat4, 24, 2400); bitstream.WriteBool(data.paramBool1); bitstream.WriteBool(data.paramBool2); bitstream.WriteBool(data.paramBool3); bitstream.WriteBool(data.paramBool4); bitstream.WriteEntity(data.paramEntity1); bitstream.WriteEntity(data.paramEntity2); bitstream.WriteEntity(data.paramEntity3); bitstream.WriteEntity(data.paramEntity4); var converted_paramString = coherenceToUnityConverters.FromUnityFixedString64(data.paramString); bitstream.WriteShortString(converted_paramString); }
public void TransferAction(IOutBitStream bitstream, TransferAction data) { bitstream.WriteIntegerRange(data.participant, 15, -9999); bitstream.WriteBool(data.accepted); }
public void GenericFieldBool9(IOutBitStream bitstream, GenericFieldBool9 data) { bitstream.WriteBool(data.number); }