Class LVarHelper.IntegerLVarReadRequest

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

public static class LVarHelper.IntegerLVarReadRequest
extends DataRequest
implements IReadOnlyRequest<java.lang.Integer>
This class implements LVar read (read-only) request. The returned value will be Integer (32-bit integer). 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

    • IntegerLVarReadRequest

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