Class BillsMail
public class BillsMail : Mail, IGenericDataHolder
- Inheritance
-
JsonTypeSafeGenericDataHolderBillsMail
- 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
MapThe Map that this mail should be received on.
receivingLot
GuidThe 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
Properties
Total
The total amount of bills that this bills mail has, based on Bills values.
public float Total { get; }
Property Value
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()