IPricedObject - Ellpeck/TinyLifeExampleMod Wiki

Tiny Life

TinyLife.World

IPricedObject Interface

A priced object is an object that has a floating point price value attached to it.
In the world of Tiny Life, prices are written as "tiny bucks", but they don't necessarily resemble the prices of the American dollar.

public interface IPricedObject

Derived
Clothes
Furniture
FurnitureType
ExportedLot
Lot
Opening
Roof
Tile
Wall
Wallpaper

Methods

IPricedObject.GetPrice() Method

Returns the price that this object can be bought or sold for.
Note that, like in the case of the Painting, the returned price isn't necessarily the full price that the object can be sold for. Instead, the price returned here should be the price that this object has when bought or sold from the FurnitureTool or similar.

float GetPrice();

Returns

System.Single
The object's price