Class PaintingType
This class represents a type of Painting that can be created using the Painting. Painting types are registered using Register(PaintingType).
[JsonConverter(typeof(MigratingStaticJsonConverter<PaintingType>), new object[] { typeof(PaintingType), "PrivateTypes", true })]
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
stringThe name of this painting type
minLevel
intThe minimum level that this painting is able to be painted with.
baseMarkup
floatThe 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
MinLevel
The minimum level that this painting is able to be painted with.
public readonly int MinLevel
Field Value
Name
The name of this painting type
public readonly string Name
Field Value
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
Methods
Register(PaintingType)
Registers a painting type with the given settings to the Types registry
public static PaintingType Register(PaintingType type)
Parameters
type
PaintingTypeThe type to register
Returns
- PaintingType
The passed
type
, for chaining.