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

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Ratio double

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

Метод Описание
Affect ( Trait t, double change ) : void

Affect a particular aspect of a relationship.

GetTraitQuality ( Trait t ) : double

Gets the quality of a particular trait.

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

Метод Описание
ApplyImpressionDecay ( double change ) : void
Relationship ( Person owner, Person other ) : System
Trait_NewTrait ( object sender, EventArgs e ) : void

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

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

Affect a particular aspect of a relationship.
public Affect ( Trait t, double change ) : void
t Trait The trait to affect
change double /// How much to affect the trait. If the trait is negative, /// a numerically positive change will have a harmful effect. ///
Результат void

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

Gets the quality of a particular trait.
public GetTraitQuality ( Trait t ) : double
t Trait The trait to query.
Результат double

Описание свойств

Ratio публичное статическое свойство

Ratio describes how much of an effect short-term impressions have on a relationship vs. long-term opinions.
This value has a somewhat fuzzy meaning, and affects what percentage of trait change goes toward opinion, as well as what percentage of impression goes toward overall quality. This number also changes how quickly impression decays. As impression becomes more important, it decays faster.
public static double Ratio
Результат double