Merchant
🛒 Merchant Class
Represents a seller of goods (items) or services (crafting & enchanting).
Namespace:
Esper.Inventool.Merchants
Access:public
Type:class
Inherits:ScriptableObject
📦 Fields
Access
Field
Type
Description
public static
onActionFailed
UnityEvent<MerchantError, string>
A callback for when an action performed on any merchant fails. Accepts two arguments: the error type (MerchantError
) and the error message (string
).
🧩 Nested Types
public enum MerchantError
public enum MerchantError
Types of reasons why a merchant action has failed.
Name
Description
Unknown
An unknown error.
InsufficientResources
Lacking currency or resources for the item or service.
NoSpace
No space in the inventory for the item.
ServiceOrGoodsNotProvided
The merchant doesn’t sell the specific good or service.
Last updated