Table of Contents

Struct Household.RandomRelation

Namespace
TinyLife.World
Assembly
TinyLife.dll

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

public readonly struct Household.RandomRelation
Inherited Members
Extension Methods

Constructors

RandomRelation(RandomPerson, RandomPerson, GenealogyType, int)

Creates a new random relation with the given settings.

public RandomRelation(Household.RandomPerson firstPerson, Household.RandomPerson secondPerson, GenealogyType genealogyType, int max)

Parameters

firstPerson Household.RandomPerson

The age of the first person in this relation.

secondPerson Household.RandomPerson

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(RandomPerson, RandomPerson, GenealogyType, RelationshipType, int)

Creates a new random relation with the given settings.

public RandomRelation(Household.RandomPerson firstPerson, Household.RandomPerson secondPerson, GenealogyType genealogyType, RelationshipType relationshipType, int max)

Parameters

firstPerson Household.RandomPerson

The age of the first person in this relation.

secondPerson Household.RandomPerson

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(RandomPerson, RandomPerson, RelationshipType, int)

Creates a new random relation with the given settings.

public RandomRelation(Household.RandomPerson firstPerson, Household.RandomPerson secondPerson, RelationshipType relationshipType, int max)

Parameters

firstPerson Household.RandomPerson

The age of the first person in this relation.

secondPerson Household.RandomPerson

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(RandomPerson, RandomPerson, RelationshipType, RomanceType, bool, int)

Creates a new random relation with the given settings.

public RandomRelation(Household.RandomPerson firstPerson, Household.RandomPerson secondPerson, RelationshipType relationshipType, RomanceType romanceType, bool dating, int max)

Parameters

firstPerson Household.RandomPerson

The age of the first person in this relation.

secondPerson Household.RandomPerson

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 Household.RandomPerson FirstPerson

Field Value

Household.RandomPerson

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 Household.RandomPerson SecondPerson

Field Value

Household.RandomPerson