Gerrudo / reticulating-splines

An isometric city building game.
0 stars 0 forks source link

Building Connection State Machine #45

Open Gerrudo opened 1 month ago

Gerrudo commented 1 month ago

We should add a simple state machine pattern into our game that allows us to change the state of a connection easily for our buildings.

The aim is to reduce complexity and nesting.

The state should be able to detect if a building is connected to a:

From there we can possibly decide on values for resource usage, once we know a building is connected.