Show / Hide Table of Contents

Namespace Eco.Gameplay.DynamicValues

Classes

AdditiveStrategy

BonusUnitsDecoratorStrategy

ConstantValue

DynamicValueExtensions

DynamicValueType

LayerModifiedValue

LinearStrategy

ModificationStrategy

ModuleContext

Dynamic Value Context for Module (like resource efficiency or speed efficiency). Can be used to calculate IDynamicValue.

ModuleModifiedValue

Dynamic value modified by Module. It retrieves the module from context and modifies value using the module.

MultiDynamicOps

MultiDynamicValue

MultiplicativeStrategy

PercentIncreaseStrategy

PercentReductionStrategy

SkillModifiedValue

SkillModifiedValueManager

TalentBenefitTooltipManager

TalentModifiedValue

UserDynamicValueContext

Dynamic Value Context for User (like labor efficiency or yield increase). Can be used to calculate IDynamicValue.

UserStatModifiedValue

Interfaces

IDynamicValue

IDynamicValueContext

Context for evaluating Dynamic Values (passes as parameter to GetCurrentValue(IDynamicValueContext).

It provides a way to calculate IDynamicValue in different contexts.

In example IDynamicValue may be evaluated for User - in this case you should create UserDynamicValueContext.

Alternatively you may need to calculate IDynamicValue for crafting table PluginModule - in this case you should create ModuleContext.

Depending on context IDynamicValue may be evaluated in different ways. In example for UserDynamicValueContext Position will be retrieved from User, but for ModuleContext it will use a crafting table position. Some values, like ModuleModifiedValue, may only be evaluated for specific context, otherwise they will return base value. I.e. if you view Recipe from Ecopedia it will show unmodified ingredient amount and crafting time, but on crafting table it will show values modified by modules.

☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾