Search Results for

    Show / Hide Table of Contents

    Class FurnitureMail

    A Mail that contains a furniture item, and that can be opened using GetFurnitureMail.

    Inheritance
    System.Object
    MLEM.Data.Json.JsonTypeSafeGenericDataHolder
    Mail
    FurnitureMail
    Implements
    MLEM.Misc.IGenericDataHolder
    Inherited Members
    Mail.Id
    Mail.SentTime
    Mail.Map
    Mail.GetReceivingLot()
    Mail.GetReceivingMailbox()
    Mail.OnReceived()
    MLEM.Data.Json.JsonTypeSafeGenericDataHolder.SetData(System.String, System.Object)
    MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetData<T>(System.String)
    MLEM.Data.Json.JsonTypeSafeGenericDataHolder.GetDataKeys()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: TinyLife.World
    Assembly: Tiny Life.dll
    Syntax
    public class FurnitureMail : Mail, IGenericDataHolder

    Constructors

    FurnitureMail(Guid, Furniture)

    Declaration
    public FurnitureMail(Guid receivingLot, Furniture item)
    Parameters
    Type Name Description
    System.Guid receivingLot
    Furniture item

    Fields

    Item

    The furniture item to receive in the mail.

    Declaration
    [DataMember]
    public readonly Furniture Item
    Field Value
    Type Description
    Furniture

    Methods

    OnCollected(Action)

    A method that is called when the Item is collected as part of the given Action. This method is called in GetFurnitureMail.

    Declaration
    public virtual void OnCollected(Action action)
    Parameters
    Type Name Description
    Action action

    The action.

    Validate(Map)

    Validates this mail and returns false if it is somehow invalid. This method is called when a save is loaded.

    Declaration
    public override bool Validate(Map map)
    Parameters
    Type Name Description
    Map map

    The map that this mail is on.

    Returns
    Type Description
    System.Boolean

    Whether this mail is valid.

    Overrides
    Mail.Validate(Map)

    Implements

    MLEM.Misc.IGenericDataHolder

    Extension Methods

    Extensions.JsonCopy<T>(T)
    ☀
    ☾
    In This Article
    Back to top
    © 2021-2022 Ellpeck – Impressum – Privacy – Status
    ☀
    ☾