Click or drag to resize

IResourceChangeEventTSource, TArgs Interface

Defines an event for after a resource pool has been changed.

Namespace:  Archon.SwissArmyLib.ResourceSystem
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public interface IResourceChangeEvent<TSource, TArgs> : IResourceEvent<TSource, TArgs>

Type Parameters

TSource

[Missing <typeparam name="TSource"/> documentation for "T:Archon.SwissArmyLib.ResourceSystem.IResourceChangeEvent`2"]

TArgs

[Missing <typeparam name="TArgs"/> documentation for "T:Archon.SwissArmyLib.ResourceSystem.IResourceChangeEvent`2"]

The IResourceChangeEventTSource, TArgs type exposes the following members.

Properties
  NameDescription
Public propertyAppliedDelta
Gets the actual applied (and clamped) delta. Basically just the difference in resource amount before and after the change.
Public propertyArgs
Gets or sets the args that the sender sent with the change.
(Inherited from IResourceEventTSource, TArgs.)
Public propertyModifiedDelta
Gets the modified delta after listeners of OnPreChange had their chance to affect it.
Public propertyOriginalDelta
Gets the originally requested resource change.
Public propertySource
Gets or sets the source of the resource change.
(Inherited from IResourceEventTSource, TArgs.)
Top
See Also