Table of Contents

Class Newspaper

Namespace
TinyLife.Objects
Assembly
Tiny Life.dll

A furniture class for Newspaper.

public class Newspaper : Furniture, IGenericDataHolder
Inheritance
JsonTypeSafeGenericDataHolder
Newspaper
Implements
IGenericDataHolder
Inherited Members
JsonTypeSafeGenericDataHolder.GetDataKeys()
Extension Methods

Fields

Day

The day that this newspaper was delivered on, in in-game time.

[DataMember]
public TimeSpan Day

Field Value

TimeSpan

Properties

IsExpired

Whether this newspaper is expired, based on the Time and the Day. A newspaper is expired when it is two or more days old.

public bool IsExpired { get; }

Property Value

bool

Methods

GetDescription(List<string>, bool)

This method allows adding a set of strings to the description list that get displayed when the object is hovered over in the build mode or household storage UIs. By default, this method adds various strings related to the ElectricityRating, Quality, Creator, and also invokes the OnGetDescription event.

public override void GetDescription(List<string> description, bool forHoverInfo)

Parameters

description List<string>

The description to add to.

forHoverInfo bool

Whether this method is being called by GetHoverInfo(Tooltip) (or by build mode).