Class EfficiencyModule
Abstract class for efficiency modules (both resource and speed) which may be used to enhance a table.
It may only Modify(ModuleModifiedValue) values which associated to same SkillType or if SkillType not specified then apply to any value.
Inheritance
System.Object
EfficiencyModule
Assembly: Eco.Gameplay.dll
Syntax
[ItemGroup("Upgrade")]
public abstract class EfficiencyModule : PluginModule, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, IController, IViewController, IHasUniversalID, IModule
Constructors
EfficiencyModule(ModuleTypes, Single)
Declaration
protected EfficiencyModule(ModuleTypes moduleTypes, float multiplier)
Parameters
Type |
Name |
Description |
ModuleTypes |
moduleTypes |
|
System.Single |
multiplier |
|
EfficiencyModule(ModuleTypes, Single, Type, Single)
Declaration
protected EfficiencyModule(ModuleTypes moduleTypes, float genericMultiplier, Type skillType, float skillMultiplier)
Parameters
Type |
Name |
Description |
ModuleTypes |
moduleTypes |
|
System.Single |
genericMultiplier |
|
System.Type |
skillType |
|
System.Single |
skillMultiplier |
|
Properties
Benefits
Declaration
public override IEnumerable<LocString> Benefits { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<LocString> |
|
Overrides
GenericMultiplier
Module efficiency generic multiplier (applies to all recipes). Dynamic value in Modify(ModuleModifiedValue) will be multiplied on this to get final value.
Declaration
public float GenericMultiplier { get; }
Property Value
Type |
Description |
System.Single |
|
SkillMultiplier
Declaration
public float SkillMultiplier { get; }
Property Value
Type |
Description |
System.Single |
|
SkillType
Module will only be applied to values associated with same SkillType if specified.
Declaration
public Type SkillType { get; }
Property Value
Type |
Description |
System.Type |
|
SkillTypeID
Declaration
public int SkillTypeID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Modify(ModuleModifiedValue)
Modified value
using the module. I.e. if ValueType is Efficiency then it may be decreased by some percent.
Declaration
public override float Modify(ModuleModifiedValue value)
Parameters
Returns
Type |
Description |
System.Single |
|
Overrides
Implements
Extension Methods