C# Класс TweakScale.ScaleExponents

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateExponentsForModule ( ConfigNode node, ScaleExponents>.Dictionary parent ) : ScaleExponents>.Dictionary
LoadGlobalExponents ( ) : void

Load all TWEAKSCALEEXPONENTS that are globally defined.

Merge ( ScaleExponents destination, ScaleExponents source ) : ScaleExponents

Merge two ScaleExponents. All the values in source that are not already present in destination will be added to destination

UpdateObject ( Part part, Part prefabObj, ScaleExponents>.Dictionary exponents, TweakScale.ScalingFactor factor ) : void

Приватные методы

Метод Описание
Clone ( ) : ScaleExponents

Creates modules copy of the ScaleExponents.

IsExponentBlock ( ConfigNode node ) : bool
Rescale ( TweakScale.MemberUpdater current, TweakScale.MemberUpdater baseValue, string name, ScalingMode scalingMode, TweakScale.ScalingFactor factor ) : void

Rescales destination exponentValue according to its associated exponent.

ScaleExponents ( ConfigNode node, ScaleExponents source = null ) : System
ScaleExponents ( ScaleExponents source ) : System
ShouldIgnore ( Part part ) : bool
UpdateEnumerable ( IEnumerable obj, IEnumerable prefabObj, TweakScale.ScalingFactor factor, Part part = null ) : void

For IEnumerables (arrays, lists, etc), we want to update the items, not the list.

UpdateFields ( object obj, object baseObj, TweakScale.ScalingFactor factor, Part part ) : void

Rescale the field of obj according to the exponents of the ScaleExponents and factor.

Описание методов

CreateExponentsForModule() публичный статический Метод

public static CreateExponentsForModule ( ConfigNode node, ScaleExponents>.Dictionary parent ) : ScaleExponents>.Dictionary
node System.ConfigNode
parent ScaleExponents>.Dictionary
Результат ScaleExponents>.Dictionary

LoadGlobalExponents() публичный статический Метод

Load all TWEAKSCALEEXPONENTS that are globally defined.
public static LoadGlobalExponents ( ) : void
Результат void

Merge() публичный статический Метод

Merge two ScaleExponents. All the values in source that are not already present in destination will be added to destination
public static Merge ( ScaleExponents destination, ScaleExponents source ) : ScaleExponents
destination ScaleExponents The ScaleExponents to update.
source ScaleExponents The ScaleExponents to add to
Результат ScaleExponents

UpdateObject() публичный статический Метод

public static UpdateObject ( Part part, Part prefabObj, ScaleExponents>.Dictionary exponents, TweakScale.ScalingFactor factor ) : void
part Part
prefabObj Part
exponents ScaleExponents>.Dictionary
factor TweakScale.ScalingFactor
Результат void