Show / Hide Table of Contents

Class CompletionPercentOverride

Configurable module that overrides the completion percentage. Items and Placements will be weighted according to their CompletionWeightTag. Transition weights are set in the module. By default, finding an item increases the total by 1/(#items at placement), and finding a transition X->Y, Y->X pair increases the total by 1.

Inheritance
object
Module
CompletionPercentOverride
Inherited Members
Module.LoadOnce()
Module.UnloadOnce()
Module.Name
Module.ModuleHandlingProperties
Module.Loaded
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: ItemChanger.Modules
Assembly: ItemChanger.dll
Syntax
public class CompletionPercentOverride : Module

Constructors

View Source

CompletionPercentOverride()

Declaration
public CompletionPercentOverride()

Fields

View Source

FoundTransitions

Declaration
public HashSet<Transition> FoundTransitions
Field Value
Type Description
HashSet<Transition>
View Source

TransitionWeights

Declaration
public Dictionary<Transition, float> TransitionWeights
Field Value
Type Description
Dictionary<Transition, float>

Properties

View Source

CoupledTransitions

If this is true, finding transition X -> Y will mark both X and Y as found. Otherwise, just X will be marked.

Declaration
public bool CoupledTransitions { get; set; }
Property Value
Type Description
bool
View Source

NormalizePlacementCounts

If this is true, items will be scaled so that placements have total weight equal to their tag (or 1).

Declaration
public bool NormalizePlacementCounts { get; set; }
Property Value
Type Description
bool

Methods

View Source

ComputeCompletion(bool)

Declaration
public float ComputeCompletion(bool invalidateCache = false)
Parameters
Type Name Description
bool invalidateCache
Returns
Type Description
float
View Source

GetItemFraction()

Declaration
public (float, float) GetItemFraction()
Returns
Type Description
(float, float)
View Source

GetTransitionFraction()

Declaration
public (float, float) GetTransitionFraction()
Returns
Type Description
(float, float)
View Source

Initialize()

Declaration
public override void Initialize()
Overrides
Module.Initialize()
View Source

SetTransitionWeight(Transition, float)

Declaration
public void SetTransitionWeight(Transition t, float weight)
Parameters
Type Name Description
Transition t
float weight
View Source

Unload()

Declaration
public override void Unload()
Overrides
Module.Unload()

Extension Methods

Extensions.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX