TinyLifeExampleMod/Api/TinyLife/Objects/BreakableFurniture.md

2.2 KiB

BreakableFurniture

Namespace: TinyLife > Objects

Assembly: Tiny Life.dll

Implements IGenericDataHolder, IPricedObject, IUpdatingObject

Summary

Breakable furniture is TinyLife.Objects.Furniture that can be TinyLife.Objects.BreakableFurniture.Broken and then repaired. An object of this class is automatically returned in TinyLife.Objects.FurnitureType.Construct(System.Int32[],TinyLife.World.Map,Microsoft.Xna.Framework.Vector2,System.Nullable{System.Guid}) if no TinyLife.Objects.FurnitureType.TypeSettings.ConstructedType is set.

Constructors

Name Summary
BreakableFurniture ( Guid, FurnitureType, Int32[], Map, Vector2 )

Fields

Type Name Summary
Boolean Broken A field that stores whether this furniture is currently broken

Methods

Return Name Summary
void ActionUpdate ( Action, GameTime, TimeSpan, GameSpeed, Boolean )
IEnumerable<String> GetDescription ( )
Single GetPrice ( )
void Update ( GameTime, TimeSpan, GameSpeed )
void WearDown ( TimeSpan ) Causes this furniture to wear down, increasing the likelihood of it becoming TinyLife.Objects.BreakableFurniture.Broken and randomly breaking it