With this mod, you can effortlessly apply buffs or debuffs to any in-game entity, such as Beavers, Manufactories, Buildings, or other objects. The mod includes pre-built UI components, a manager, and common use case classes, allowing you to focus on creating the desired effects without worrying about debugging or implementation details.
- Buff & Debuff System mod: Source code, Steam Workshop, Mod.io
- Demo project: Source code, Steam Workshop, Mod.io
- Global Wellbeing (using this mod): Source code, Steam Workshop
Guides
Architecture
The Buff & Debuff System consists of the following components:
IBuffEntity
: everything is a buff entity and they have a uniquelong Id
assigned when registered to theIBuffEntityService
.IBuffEntityService
: the singleton service that manages all buff entities. You can get all or one by Id with this service.Register
andUnregister
most likely won’t need to be called by you.
BuffableComponent
: Attached to all entities in the game. They have a unique ID to identify them. You can get them all from theIBuffableService
singleton.
More coming soon…