Class StorageManager
Provides methods for managing and retrieving storage containers within the game.
public static class StorageManager
- Inheritance
-
StorageManager
- Inherited Members
Methods
FindByName(string)
Finds a storage entity by its display name.
public static StorageInstance? FindByName(string name)
Parameters
namestringThe display name of the storage entity to find.
Returns
- StorageInstance
A storage instance if found; otherwise, null.
FindByPredicate(Func<StorageInstance, bool>)
Finds storage entities matching a given predicate.
public static StorageInstance[] FindByPredicate(Func<StorageInstance, bool> predicate)
Parameters
predicateFunc<StorageInstance, bool>A function to test each storage entity for a condition.
Returns
- StorageInstance[]
An array of storage instances that match the predicate.
GetAll()
Gets all world storage entities currently in the game.
public static StorageInstance[] GetAll()
Returns
- StorageInstance[]
An array of storage instances representing all world storage entities.