Click or drag to resize

Archon.SwissArmyLib.ResourceSystem Namespace

Contains classes related to the resource system (health, mana, etc).
Classes
  ClassDescription
Public classResourcePool
Public classResourcePoolTSource, TArgs
A flexible resource pool (eg. health, mana, energy). Generic version of ResourcePool in case you want type-safety. To be able to use this you should make a non-generic subclass.
Public classResourcePoolTSource, TArgsEventIds
Event ids for resource change events.
Public classResourcePoolBase
Non-generic base class for ResourcePool to allow its editor to work for subclasses.
Public classResourceRegen
Adds resource to a ResourcePool at a constant rate or in intervals. If the Target is not set, it will try to find a ResourcePool on the same GameObject. If you need type-safety consider subclassing the generic version: ResourceRegenTSource, TArgs.
Remarks
This non-generic version only works for the non-generic ResourcePool.
Public classResourceRegenTSource, TArgs
Public classShield
A resource pool that is used to protect another resource pool from getting drained. The shield intercepts the event and applies some of the change to itself, only letting part (or none at all) of the change get through. If the ProtectedTarget is not set, it will try to find a ResourcePool on the same GameObject. If you need type-safety consider subclassing the generic version: ShieldTSource, TArgs.
Remarks
This non-generic version only works for the non-generic ResourcePool.
Public classShieldTSource, TArgs
A resource pool that is used to protect another resource pool from getting drained. The shield intercepts the event and applies some of the change to itself, only letting part (or none at all) of the change get through. If the ProtectedTarget is not set, it will try to find a ResourcePoolTSource, TArgs on the same GameObject. Generic version of Shield in case you want type-safety. To be able to use this you should make a non-generic subclass.
Interfaces