StorageService API
The StorageService class is responsible for managing storage services across the lifecycle of the game.
Static API | |||
| Method | Parameters | Returns | Description |
| SetCurrentSlot |
| Changes the current storage slot. If updateStorageInstances is set to true all initialized storage instances will get its slot updated. | |
| GetCurrentSlot | string | Gets the current storage slot. | |
| ClearServices | Removes all initialized services from memory (making them unavailable). | ||
| AddService |
| Adds a StorageService instance to the initialized services (makes it available). | |
| RemoveService |
| Removes a service from the available services by its unique name. | |
| GetService |
| StorageService | Given a storage service name it returns its corresponding instance form initialized services. |
| GetServices | StorageService[] | Returns all initialized storage services as an array. | |
| GetServiceNames | string[] | Returns all initialized storage service names as an array. | |
Static events API | |||
| Event | Parameters | Returns | Description |
| onSlotChanged | It gets invoken whenever the currentSlot gets updated. | ||