|
Endstar LUA API Documentation
|
Public Member Functions | |
| void | SetResourceCollectionRule (Context instigator, ResourceLibraryReference resourceReference, int rule) |
| Set the Resource Collection Rule for an individual Resource. | |
| void | ClearAllResources (Context instigator) |
| Resets all collected resources to 0. | |
| void | ClearResource (Context instigator, ResourceLibraryReference resourceReference) |
| Resets all collected resources of a specific resource type to 0. | |
| void | ClearAllResourcesForPlayer (Context instigator, Context playerContext) |
| Resets all collected resources to 0 for a specific player. Will also reset shared pools. | |
| void | ClearResourceForPlayer (Context instigator, ResourceLibraryReference resourceReference, Context playerContext) |
| Resets all collected resources resources of a specific resource type to 0 for a specific player. Will reset shared pool if ResourceCollectionRule is set to Shared for that resource. | |
| void ClearAllResources | ( | Context | instigator | ) |
Resets all collected resources to 0.
| instigator | The source context of this change. |
Resets all collected resources to 0 for a specific player. Will also reset shared pools.
| instigator | The source context of this change. |
| playerContext | The Player Character's context. |
| void ClearResource | ( | Context | instigator, |
| ResourceLibraryReference | resourceReference ) |
Resets all collected resources of a specific resource type to 0.
| instigator | The source context of this change. |
| resourceReference | The ResourceLibraryReference of the resource. |
| void ClearResourceForPlayer | ( | Context | instigator, |
| ResourceLibraryReference | resourceReference, | ||
| Context | playerContext ) |
Resets all collected resources resources of a specific resource type to 0 for a specific player. Will reset shared pool if ResourceCollectionRule is set to Shared for that resource.
| instigator | The source context of this change. |
| resourceReference | The ResourceLibraryReference of the resource. |
| playerContext | The Player Character's context. |
| void SetResourceCollectionRule | ( | Context | instigator, |
| ResourceLibraryReference | resourceReference, | ||
| int | rule ) |
Set the Resource Collection Rule for an individual Resource.
| instigator | The source context of this change. |
| resourceReference | The ResourceLibraryReference of the resource. |
| rule | The rule as a ResourceCollectionRule |