Week of Resource Refactoring and UI Creation
- Liam Healey
- Jan 16, 2023
- 1 min read
Updated: May 22, 2024
Syrup
A large part of this last week was spent refactoring resource sinks to be more versatile and able to replace the large quantities of duplicated code throughout the project. This refactor involved changing the sink from an interface to a component so that it could be added multiple times to the same actor. The resource sinks also integrated the much-duplicated code detailing conversion rates of resource allocation to its effects. These sinks take in three delegates on construction (in either C++ or Blueprint) that link the sink to the effects it causes when the sink is allocated to.

Time was also spent making a UI that could take in any resource sink and display all of the relevant information and allow the player to allocate a resource to it.

Comments