C# Класс Sharplike.Storylib.Relationships.RelationshipChange

Показать файл Открыть проект

Открытые методы

Метод Описание
AddPersonalityEffect ( Person target, Trait t, double amount ) : void

Adds a personality effect to the batch. Personality effects will change the first impression that new relationships get seeded with.

AddRelationshipChange ( Trait t, double amount ) : void

Adds a relationship trait change to the batch.

Apply ( Relationship target ) : void

Applies a batch.

RelationshipChange ( ) : System
RelationshipChange ( DialogueOption option, Relationship relationship, bool applyMultiple = false ) : System

Constructor which lets you provide a dialogue option and relationship to automatically bind to.

Приватные методы

Метод Описание
opt_OptionChosen ( object sender, EventArgs e ) : void

Описание методов

AddPersonalityEffect() публичный Метод

Adds a personality effect to the batch. Personality effects will change the first impression that new relationships get seeded with.
public AddPersonalityEffect ( Person target, Trait t, double amount ) : void
target Person The person whose personality should change.
t Trait The trait of the personality that should change.
amount double How much the specified trait should change.
Результат void

AddRelationshipChange() публичный Метод

Adds a relationship trait change to the batch.
public AddRelationshipChange ( Trait t, double amount ) : void
t Trait The trait to change.
amount double How much the trait should change.
Результат void

Apply() публичный Метод

Applies a batch.
public Apply ( Relationship target ) : void
target Relationship The relationship that the batch should be applied to.
Результат void

RelationshipChange() публичный Метод

public RelationshipChange ( ) : System
Результат System

RelationshipChange() публичный Метод

Constructor which lets you provide a dialogue option and relationship to automatically bind to.
public RelationshipChange ( DialogueOption option, Relationship relationship, bool applyMultiple = false ) : System
option Sharplike.Storylib.DialogueTree.DialogueOption /// The dialogue option which, when triggered by a visitor, will apply the batch. ///
relationship Relationship The relationship that will be modified.
applyMultiple bool /// Whether the batch may be applied more than once for the same dialogue option. ///
Результат System