eolib - v2.0.1
    Preparing search index...

    Class Weight

    Current carry weight and maximum carry capacity of a player

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get byteSize(): number

      Returns the size of the data that this was deserialized from.

      Returns number

      The size of the data that this was deserialized from

    • get current(): number

      Returns number

      • Value range is 0-252
    • set current(current: number): void

      Parameters

      • current: number

      Returns void

      • Value range is 0-252
    • get max(): number

      Returns number

      • Value range is 0-252
    • set max(max: number): void

      Parameters

      • max: number

      Returns void

      • Value range is 0-252

    Methods

    • Deserializes an instance of Weight from the provided EoReader.

      Parameters

      • reader: EoReader

        the reader that the data will be deserialized from

      Returns Weight

      The deserialized data

    • Serializes an instance of Weight to the provided EoWriter.

      Parameters

      • writer: EoWriter

        the writer that the data will be serialized to

      • data: Weight

        the data to serialize

      Returns void