UI Overhaul & Code Improvments

Sam

November 20, 2024

The UI overhaul is done. In the image below is the final result

I really tried to make everything dynamic and I think I made a pretty great system of it. There are some things that could be improved in the future for modding purposes if that ever becomes relevant. For now I am unsure though.

Code improvements

Not really any images I can post for this section. For the code clean up and improvements they are pretty closely related. Most of the improvements have been with me learning the Unity ECS system. This has allowed me to rewrite some code to be more efficient. The code that took me the most time to rewrite was the cargo boat system. For that I needed to adapt a KOB data structure system. Compared to the system I had earlier it does have some advantages but also disadvantages. The biggest disadvantage is needing to shift an array. The shifting of the array will take some time therefore I have taken precautions for it.

I have been cleaning up the building system. Before this it was pretty undynamic. Now having made it more dynamic it will also allow for easier mod opportunities if that would become relevant but mostly important it is very easy for me to add new buildings