Skip to content

v0.3.0

Compare
Choose a tag to compare
@hawkfalcon hawkfalcon released this 24 Apr 21:59
· 306 commits to main since this release
660ec10

The long awaited TimberAPI 0.3 is released!

- NEW: Dependency Container
A new way to retrieve any dependency directly
TimberAPI.DependencyContainer.GetInstance<UIBuilder>();
Our first feature to make harmony use easier, you don't need constructor access.

- NEW: Entity Linker
Provides a 2 way connection between entities to pass or access data on other buildings/components. It's preinstalled, all you have to do is CreateLink on the EntityLinker component

- NEW: Object Registry
Add objects/buildings to our own TimberAPI object collection. You can use this to easily inject buildings.
TimberAPI.CustomObjectRegistry.AddGameObject(customObject);

- IMPROVED: DependencyRegistry
Add multiple configurators at the same time with DependencyRegistry.AddConfigurators
Ensure early load order if necessary (e.g. for ObjectRegistry) with
DependencyRegistry.AddConfiguratorBeforeLoad

- INTERNAL IMPROVEMENT: Logging
Unified the logging within TimberAPI to all use BepInEx's logger

Download
https://timberborn.thunderstore.io/package/Timberborn_Central/TimberAPI/
Example
https://timberborn.thunderstore.io/package/Timberborn_Central/TimberAPIExample/
NuGet Dependency
https://www.nuget.org/packages/TimberAPI/0.3.0