eolib - v2.0.1
    Preparing search index...

    Class ShopTradeRecord

    Record of an item that can be bought or sold in a shop

    Index

    Constructors

    Accessors

    • get buyPrice(): number

      How much it costs to buy the item from the shop

      Returns number

      • Value range is 0-16194276
    • set buyPrice(buyPrice: number): void

      How much it costs to buy the item from the shop

      Parameters

      • buyPrice: number

      Returns void

      • Value range is 0-16194276
    • 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 itemId(): number

      Returns number

      • Value range is 0-64008
    • set itemId(itemId: number): void

      Parameters

      • itemId: number

      Returns void

      • Value range is 0-64008
    • get maxAmount(): number

      Max amount of the item that can be bought or sold at one time

      Returns number

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

      Max amount of the item that can be bought or sold at one time

      Parameters

      • maxAmount: number

      Returns void

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

      How much the shop will pay for the item

      Returns number

      • Value range is 0-16194276
    • set sellPrice(sellPrice: number): void

      How much the shop will pay for the item

      Parameters

      • sellPrice: number

      Returns void

      • Value range is 0-16194276

    Methods

    • Deserializes an instance of ShopTradeRecord from the provided EoReader.

      Parameters

      • reader: EoReader

        the reader that the data will be deserialized from

      Returns ShopTradeRecord

      The deserialized data

    • Serializes an instance of ShopTradeRecord to the provided EoWriter.

      Parameters

      Returns void