TinyLifeExampleMod/Api/TinyLife/Skills/PaintingType.md

2.3 KiB

PaintingType

Namespace: TinyLife > Skills

Assembly: Tiny Life.dll

Summary

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

Constructors

Name Summary
PaintingType ( String, Range<Int32>, Single ) Creates a new painting type with the given settings

Fields

Type Name Summary
Single BaseMarkup The multiplier with which the created TinyLife.Objects.Painting's price will be marked up. Before this multiplier is applied, the level and quality modifiers are also applied.
Range<Int32> LevelRange The MonoGame.Extended.Range1of levels of theTinyLife.Skills.SkillType.Painting` skill that allows creating this painting
String Name The name of this painting type
TextureRegion Texture The texture that this painting uses. The texture is loaded from the TinyLife.Mods.Mod.GetCustomFurnitureTextures as "PaintingTinyLife.Skills.PaintingType.Name" Note that this texture is just an overlay; the frame and white background are automatically drawn.

Static Fields

Type Name Summary
IDictionary<String, PaintingType> Types All registered TinyLife.Skills.PaintingType instances in the game and in active mods

Static Methods

Return Name Summary
void Register ( PaintingType ) Registers a painting type with the given settings to the TinyLife.Skills.PaintingType.Types registry