Table of Contents

Class BillsMail

Namespace
TinyLife.World
Assembly
Tiny Life.dll

A Mail type that represents bills for a Household to pay

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

Constructors

BillsMail(Map, Guid, Dictionary<string, float>)

Creates a new bills mail with the given settings

public BillsMail(Map map, Guid receivingLot, Dictionary<string, float> bills)

Parameters

map Map

The Map that this mail should be received on.

receivingLot Guid

The Id of the lot that should receive this mail

bills Dictionary<string, float>

The amount of tiny bucks that needs to be paid by the receiving household, based on GetWeeklyBills()

Fields

Bills

The amount of tiny bucks that needs to be paid by the receiving household, based on GetWeeklyBills().

[DataMember]
public readonly Dictionary<string, float> Bills

Field Value

Dictionary<string, float>

Properties

Total

The total amount of bills that this bills mail has, based on Bills values.

public float Total { get; }

Property Value

float

Methods

OnReceived()

This method is called automatically when this mail item is received by the receiving lot. A custom mail instance can execute its custom action in this method.

public override void OnReceived()