Table of Contents

Struct Household.RandomRelation

Namespace
TinyLife.World
Assembly
Tiny Life.dll

A random relation, which is a wrapper around Relation instances between two people of certain AgeGroup values, used by Household.RandomConstellation.

public readonly struct Household.RandomRelation
Inherited Members
Extension Methods

Constructors

RandomRelation(AgeGroup, AgeGroup, GenealogyType, int)

Creates a new random relation with the given settings.

public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, GenealogyType genealogyType, int max)

Parameters

firstPerson AgeGroup

The age of the first person in this relation.

secondPerson AgeGroup

The age of the second person in this relation.

genealogyType GenealogyType

The generalogy type to apply.

max int

The maximum amount of times that this random relation can be applied to household members of one household.

RandomRelation(AgeGroup, AgeGroup, GenealogyType, RelationshipType, int)

Creates a new random relation with the given settings.

public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, GenealogyType genealogyType, RelationshipType relationshipType, int max)

Parameters

firstPerson AgeGroup

The age of the first person in this relation.

secondPerson AgeGroup

The age of the second person in this relation.

genealogyType GenealogyType

The generalogy type to apply.

relationshipType RelationshipType

The relationship type to apply.

max int

The maximum amount of times that this random relation can be applied to household members of one household.

RandomRelation(AgeGroup, AgeGroup, RelationshipType, int)

Creates a new random relation with the given settings.

public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, RelationshipType relationshipType, int max)

Parameters

firstPerson AgeGroup

The age of the first person in this relation.

secondPerson AgeGroup

The age of the second person in this relation.

relationshipType RelationshipType

The relationship type to apply.

max int

The maximum amount of times that this random relation can be applied to household members of one household.

RandomRelation(AgeGroup, AgeGroup, RelationshipType, RomanceType, bool, int)

Creates a new random relation with the given settings.

public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, RelationshipType relationshipType, RomanceType romanceType, bool dating, int max)

Parameters

firstPerson AgeGroup

The age of the first person in this relation.

secondPerson AgeGroup

The age of the second person in this relation.

relationshipType RelationshipType

The relationship type to apply.

romanceType RomanceType

The romance type to apply.

dating bool

Whether the people should be marked as dating.

max int

The maximum amount of times that this random relation can be applied to household members of one household.

Fields

FirstPerson

The age of the first person in this relation.

public readonly AgeGroup FirstPerson

Field Value

AgeGroup

Max

The maximum amount of times that this random relation can be applied to household members of one household.

public readonly int Max

Field Value

int

Relation

The underlying Relation that should be applied to the FirstPerson and SecondPerson.

public readonly Household.Relation Relation

Field Value

Household.Relation

SecondPerson

public readonly AgeGroup SecondPerson

Field Value

AgeGroup