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.
Inherited Members
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 SourceFoundTransitions
Declaration
public HashSet<Transition> FoundTransitions
Field Value
Type | Description |
---|---|
HashSet<Transition> |
TransitionWeights
Declaration
public Dictionary<Transition, float> TransitionWeights
Field Value
Type | Description |
---|---|
Dictionary<Transition, System.Single> |
Properties
| Improve this Doc View SourceCoupledTransitions
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 |
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 SourceComputeCompletion(Boolean)
Declaration
public float ComputeCompletion(bool invalidateCache = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | invalidateCache |
Returns
Type | Description |
---|---|
System.Single |
GetItemFraction()
Declaration
public (float, float) GetItemFraction()
Returns
Type | Description |
---|---|
System.ValueTuple<System.Single, System.Single> |
GetTransitionFraction()
Declaration
public (float, float) GetTransitionFraction()
Returns
Type | Description |
---|---|
System.ValueTuple<System.Single, System.Single> |
Initialize()
Declaration
public override void Initialize()
Overrides
| Improve this Doc View SourceSetTransitionWeight(Transition, Single)
Declaration
public void SetTransitionWeight(Transition t, float weight)
Parameters
Type | Name | Description |
---|---|---|
Transition | t | |
System.Single | weight |
Unload()
Declaration
public override void Unload()