Class Newspaper
A furniture class for Newspaper.
public class Newspaper : Furniture, IGenericDataHolder
- Inheritance
-
JsonTypeSafeGenericDataHolderNewspaper
- 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
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
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
boolWhether this method is being called by GetHoverInfo(Tooltip) (or by build mode).