feldoh / PawnStorages

Homebound - An experimental mod offering a variety of ways to tuck pawns away when they're not needed in order to preserve system resources
https://steamcommunity.com/sharedfiles/filedetails/?id=2674603226
MIT License
0 stars 2 forks source link

Some code cleanup for farms #25

Closed keyz182 closed 1 month ago

keyz182 commented 1 month ago

Clean up the farm code to better isolate functionality, and make the comps more, well, composable.

There was little separation of concern with the farm code, with multiple comps being highly inter-related. this PR splits things out, and makes use of the I<>Parent pattern for the comps to communicate.

keyz182 commented 1 month ago

Adds Zero functionality, but should make the code easier to read.

feldoh commented 1 month ago

Looks good in principle, but unsure about those buttons and the csproj got a bit messed up

keyz182 commented 1 month ago

All done :)