Click or drag to resize

ResourcePoolTSource, TArgsAdd Method (Single, TSource, TArgs, Boolean)

Adds the specified amount of resource to the pool.

Namespace:  Archon.SwissArmyLib.ResourceSystem
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public float Add(
	float amount,
	TSource source,
	TArgs args,
	bool forced = false
)
Request Example View Source

Parameters

amount
Type: SystemSingle
The amount to add.
source
Type: TSource
The source of the change.
args
Type: TArgs
Optional args that will be passed to listeners.
forced (Optional)
Type: SystemBoolean
Controls whether to force the change, despite modifications by listeners.

Return Value

Type: Single
The resulting change in the pool.
See Also