Table of Contents

Struct ParentInfo

Namespace
TinyLife.Objects
Assembly
Tiny Life.dll

A parent info is a set of information used by DrawColumns(Map, Vector2, object, Vector2, TextureRegion, Color, float, Point, List<Item>, bool, ParentInfo, float, SpriteEffects, bool, bool, bool) that allows for objects to be made to look like they're attached to another object. Currently, ParentInfo supports Furniture, Wall and Roof parents.

public readonly struct ParentInfo
Inherited Members
Extension Methods

Constructors

ParentInfo(Furniture, AbstractSpot)

Creates a new parent info from the given parent.

public ParentInfo(Furniture furniture, AbstractSpot spot)

Parameters

furniture Furniture

The furniture to be attached to.

spot AbstractSpot

The spot to be attached to.

ParentInfo(Person)

Creates a new parent info from the given parent.

public ParentInfo(Person holdingPerson)

Parameters

holdingPerson Person

The person to be attached to.

ParentInfo(Roof)

Creates a new parent info from the given parent.

public ParentInfo(Roof roof)

Parameters

roof Roof

The roof to be attached to.

ParentInfo(Wall)

Creates a new parent info from the given parent.

public ParentInfo(Wall wall)

Parameters

wall Wall

The wall to be attached to.

Properties

IsAttached

Returns whether this parent info is valid, meaning it represents an existing attachment to an object.

public bool IsAttached { get; }

Property Value

bool

LayerDepth

Returns the layer depth that objects with this parent info should be displayed with. This results in objects in shelves and on tables being "squished" in terms of depth calculations so that higher shelf levels don't intersect.

public float LayerDepth { get; }

Property Value

float

ShouldDraw

Whether the object with this parent info should be drawn. This value is determined by the Person that is holding the object.

public bool ShouldDraw { get; }

Property Value

bool