Archon.SwissArmyLib.ResourceSystem Namespace |
Class | Description | |
---|---|---|
ResourcePool |
A flexible resource pool (eg. health, mana, energy).
If you need type-safety consider subclassing the generic version: ResourcePoolTSource, TArgs.
| |
ResourcePoolTSource, 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.
| |
ResourcePoolTSource, TArgsEventIds |
Event ids for resource change events.
| |
ResourcePoolBase |
Non-generic base class for ResourcePool to allow its editor to work for subclasses.
| |
ResourceRegen |
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.
| |
ResourceRegenTSource, TArgs |
Adds resource to a ResourcePoolTSource, TArgs at a constant rate or in intervals.
If the Target is not set, it will try to find a ResourcePoolTSource, TArgs on the same GameObject.
Generic version of ResourceRegen in case you want type-safety.
To be able to use this you should make a non-generic subclass.
| |
Shield |
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.
| |
ShieldTSource, 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.
|
Interface | Description | |
---|---|---|
IResourceChangeEventTSource, TArgs |
Defines an event for after a resource pool has been changed.
| |
IResourceEventTSource, TArgs |
Defines a barebones resource event.
| |
IResourcePreChangeEventTSource, TArgs |
Defines a change event that has not yet happened, and can be altered.
|