Table of Contents

Class PaintingType

Namespace
TinyLife.Skills
Assembly
Tiny Life.dll

This class represents a type of Painting that can be created using the Painting. Painting types are registered using Register(PaintingType).

[JsonConverter(typeof(StaticJsonConverter<PaintingType>), new object[] { typeof(PaintingType), "PrivateTypes" })]
public class PaintingType
Inheritance
PaintingType
Inherited Members
Extension Methods

Constructors

PaintingType(string, int, float)

Creates a new painting type with the given settings

public PaintingType(string name, int minLevel, float baseMarkup)

Parameters

name string

The name of this painting type

minLevel int

The minimum level that this painting is able to be painted with.

baseMarkup float

The multiplier with which the created painting's price will be marked up

Fields

BaseMarkup

The multiplier with which the created Painting's price will be marked up. Before this multiplier is applied, the level and quality modifiers are also applied.

public readonly float BaseMarkup

Field Value

float

MinLevel

The minimum level that this painting is able to be painted with.

public readonly int MinLevel

Field Value

int

Name

The name of this painting type

public readonly string Name

Field Value

string

Texture

The texture that this painting uses. The texture is loaded from the GetCustomFurnitureTextures(ModInfo) as "PaintingName" Note that this texture is just an overlay; the frame and white background are automatically drawn.

public readonly TextureRegion Texture

Field Value

TextureRegion

Types

All registered PaintingType instances in the game and in active mods

public static readonly ReadOnlyDictionary<string, PaintingType> Types

Field Value

ReadOnlyDictionary<string, PaintingType>

Methods

Register(PaintingType)

Registers a painting type with the given settings to the Types registry

public static PaintingType Register(PaintingType type)

Parameters

type PaintingType

The type to register

Returns

PaintingType

The passed type, for chaining.