Click or drag to resize

StatsCreateCurrentProperty Method

Create a property that changes values when the base property changes or an upgrade is added or removed.

Namespace:  Kit.Containers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static ReadOnlyAsyncReactiveProperty<float> CreateCurrentProperty(
	AsyncReactiveProperty<float> baseProperty,
	IUpgradeable upgradeable,
	string stat,
	CancellationToken cancelToken
)
Request Example View Source

Parameters

baseProperty
Type: AsyncReactivePropertySingle
The base property.
upgradeable
Type: Kit.ContainersIUpgradeable
The IUpgradeable to get the upgrade list from.
stat
Type: SystemString
The stat name.
cancelToken
Type: System.ThreadingCancellationToken

Return Value

Type: ReadOnlyAsyncReactivePropertySingle
A read-only AsyncReactiveProperty.
See Also