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
System.Object
Module
CompletionPercentOverride
Inherited Members
Module.Name
Module.LoadOnce()
Module.UnloadOnce()
Module.ModuleHandlingProperties
Module.Loaded
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ItemChanger.Modules
Assembly: ItemChanger.dll
Syntax
public class CompletionPercentOverride : Module

Fields

| Improve this Doc View Source

FoundTransitions

Declaration
public HashSet<Transition> FoundTransitions
Field Value
Type Description
HashSet<Transition>
| Improve this Doc View Source

TransitionWeights

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

Properties

| Improve this Doc 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
System.Boolean
| Improve this Doc 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
System.Boolean

Methods

| Improve this Doc View Source

ComputeCompletion(Boolean)

Declaration
public float ComputeCompletion(bool invalidateCache = false)
Parameters
Type Name Description
System.Boolean invalidateCache
Returns
Type Description
System.Single
| Improve this Doc View Source

GetItemFraction()

Declaration
public (float, float) GetItemFraction()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
| Improve this Doc View Source

GetTransitionFraction()

Declaration
public (float, float) GetTransitionFraction()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
Module.Initialize()
| Improve this Doc View Source

SetTransitionWeight(Transition, Single)

Declaration
public void SetTransitionWeight(Transition t, float weight)
Parameters
Type Name Description
Transition t
System.Single weight
| Improve this Doc View Source

Unload()

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

Extension Methods

Extensions.Yield<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX