Class LVarHelper.FloatLVarWriteRequest

java.lang.Object
com.mouseviator.fsuipc.datarequest.DataRequest
com.mouseviator.fsuipc.helpers.LVarHelper.FloatLVarWriteRequest
All Implemented Interfaces:
IDataRequest<java.lang.Float>, IWriteOnlyRequest<java.lang.Float>
Enclosing class:
LVarHelper

public static class LVarHelper.FloatLVarWriteRequest
extends DataRequest
implements IWriteOnlyRequest<java.lang.Float>
This class implements LVar write (write-only) request. It will accept Float (32-bit float value) value. The only one available constructor takes 2 arguments. The first one is an offset at which FSUIPC will look for that value to write to the Lvar. The second one is the value itself.
  • Constructor Details

    • FloatLVarWriteRequest

      public FloatLVarWriteRequest​(int offset, java.lang.Float value)
      Construct new LVar write request.
      Parameters:
      offset - The offset at which the LVar value will be stored by FSUIPC.
      value - Value to be stored at the offset.
  • Method Details

    • setValue

      public void setValue​(java.lang.Float value)
      Sets the value for this data request.
      Specified by:
      setValue in interface IDataRequest<java.lang.Float>
      Parameters:
      value - The value.