// Write this object into message-out internal override void Write(BinaryWriter binaryWriter) { base.Write(binaryWriter); MyMwcLog.IfNetVerbose_AddToLog("PositionAndOrientation: " + PositionAndOrientation.ToString()); MyMwcMessageOut.WritePositionAndOrientation(PositionAndOrientation, binaryWriter); }
// Write this object into message-out internal override void Write(BinaryWriter binaryWriter) { base.Write(binaryWriter); MyMwcLog.IfNetVerbose_AddToLog("PositionAndOrientation: " + PositionAndOrientation.ToString()); MyMwcMessageOut.WritePositionAndOrientation(PositionAndOrientation, binaryWriter); MyMwcLog.IfNetVerbose_AddToLog("VoxelHandModeType: " + VoxelHandModeType.ToString()); MyMwcMessageOut.WriteVoxelHandModeTypeEnum(VoxelHandModeType, binaryWriter); MyMwcMessageOut.WriteBool(VoxelHandMaterial.HasValue, binaryWriter); if (VoxelHandMaterial.HasValue) { MyMwcLog.IfNetVerbose_AddToLog("VoxelHandMaterial: " + VoxelHandMaterial.ToString()); MyMwcMessageOut.WriteVoxelMaterialsEnum(VoxelHandMaterial.Value, binaryWriter); } }