Struct Household.RandomRelation
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
firstPersonHousehold.RandomPersonThe age of the first person in this relation.
secondPersonHousehold.RandomPersonThe age of the second person in this relation.
genealogyTypeGenealogyTypeThe generalogy type to apply.
maxintThe 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
firstPersonHousehold.RandomPersonThe age of the first person in this relation.
secondPersonHousehold.RandomPersonThe age of the second person in this relation.
genealogyTypeGenealogyTypeThe generalogy type to apply.
relationshipTypeRelationshipTypeThe relationship type to apply.
maxintThe 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
firstPersonHousehold.RandomPersonThe age of the first person in this relation.
secondPersonHousehold.RandomPersonThe age of the second person in this relation.
relationshipTypeRelationshipTypeThe relationship type to apply.
maxintThe 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
firstPersonHousehold.RandomPersonThe age of the first person in this relation.
secondPersonHousehold.RandomPersonThe age of the second person in this relation.
relationshipTypeRelationshipTypeThe relationship type to apply.
romanceTypeRomanceTypeThe romance type to apply.
datingboolWhether the people should be marked as dating.
maxintThe 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
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
Relation
The underlying Relation that should be applied to the FirstPerson and SecondPerson.
public readonly Household.Relation Relation
Field Value
SecondPerson
public readonly Household.RandomPerson SecondPerson