Class LVarHelper.ByteLVarReadRequest

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

public static class LVarHelper.ByteLVarReadRequest
extends DataRequest
implements IReadOnlyRequest<java.lang.Byte>
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

    • ByteLVarReadRequest

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