C# Class Sharplike.Storylib.Relationships.RelationshipChange

Afficher le fichier Open project: eropple/sharplike

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
opt_OptionChosen ( object sender, EventArgs e ) : void

Method Details

AddPersonalityEffect() public méthode

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.
Résultat void

AddRelationshipChange() public méthode

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.
Résultat void

Apply() public méthode

Applies a batch.
public Apply ( Relationship target ) : void
target Relationship The relationship that the batch should be applied to.
Résultat void

RelationshipChange() public méthode

public RelationshipChange ( ) : System
Résultat System

RelationshipChange() public méthode

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. ///
Résultat System