Class LVarHelper.DoubleLVarReadRequest

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

public static class LVarHelper.DoubleLVarReadRequest
extends DataRequest
implements IReadOnlyRequest<java.lang.Double>
This class implements LVar read (read-only) request. The returned value will be Double (64-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

    • DoubleLVarReadRequest

      public DoubleLVarReadRequest​(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.Double getValue()
      Returns the double value stored in this read data request.
      Specified by:
      getValue in interface IDataRequest<java.lang.Double>
      Returns:
      The read request value.