Class LVarHelper.FloatLVarReadRequest

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

public static class LVarHelper.FloatLVarReadRequest
extends DataRequest
implements IReadOnlyRequest<java.lang.Float>
This class implements LVar read (read-only) request. The returned value will be Float (32-bit float value). The only parameter for the only available constructor this class have is the offset at which the value of Lvar will be found (where you told FSUIPC to store it). This class is best used with LVarHelper.readLVar(java.lang.String, int, com.mouseviator.fsuipc.helpers.LVarHelper.LVarValueFormat) function or LVarHelper.readLVar(java.lang.String, int, com.mouseviator.fsuipc.helpers.LVarHelper.LVarValueFormat, com.mouseviator.fsuipc.FSUIPC, boolean) function.
  • Constructor Details

    • FloatLVarReadRequest

      public FloatLVarReadRequest​(int offset)
      Construct new LVar read request.
      Parameters:
      offset - The offset at which the LVar value will be stored by FSUIPC.
  • Method Details

    • getValue

      public java.lang.Float getValue()
      Returns the float value stored in this read data request.
      Specified by:
      getValue in interface IDataRequest<java.lang.Float>
      Returns:
      The read request value.