Class LVarHelper.ShortLVarReadRequest

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

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

    • ShortLVarReadRequest

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