PrefabLibrary Class
Definition
Namespace: Brine2D.ECS
Manages a collection of entity prefabs. Registered as a singleton service.
Inheritance System.Object → PrefabLibrary
| Constructors | |
|---|---|
| PrefabLibrary\(ILogger<PrefabLibrary>\) | Manages a collection of entity prefabs. Registered as a singleton service. |
| Methods | |
|---|---|
| Clear() | Clears all prefabs. |
| Get\(string\) | Gets a prefab by name. |
| GetAll() | Gets all registered prefabs. |
| Has\(string\) | Checks if a prefab exists. |
| Register\(EntityPrefab\) | Registers a prefab in the library. |
| Remove\(string\) | Removes a prefab from the library. |