Class CustomShopLocation
A location which implements a custom shop on a given NPC.
Inherited Members
Namespace: ItemChanger.Locations
Assembly: ItemChanger.dll
Syntax
public class CustomShopLocation : ShopLocation
Remarks
Note that while defaultShopItems can be set, it will not have any effect on custom shops because they start empty by default.
Constructors
View SourceCustomShopLocation()
Declaration
public CustomShopLocation()
Fields
View SourcefacingDirection
The direction for the shopkeeper to face. Defaults to Auto.
Declaration
public FacingDirection facingDirection
Field Value
| Type | Description |
|---|---|
| FacingDirection |
figureheadSprite
The optional sprite to use as the figurehead at the top of the shop
Declaration
public ISprite? figureheadSprite
Field Value
| Type | Description |
|---|---|
| ISprite |
outOfStockConvo
The optional conversation to have when the shop is out of stock
Declaration
public IString? outOfStockConvo
Field Value
| Type | Description |
|---|---|
| IString |
Methods
View SourceOnLoad()
Called during Load(). Allows the location to initialize and set up any hooks.
Declaration
protected override void OnLoad()
Overrides
View SourceOnUnload()
Called during Unload(). Allows the location to dispose any hooks.
Declaration
protected override void OnUnload()