this-place / this.place

An isometric puzzle game that incorporates platforming and block building.
https://isteps.comp.nus.edu.sg/event/12th-steps/module/CS3247/project/4
MIT License
7 stars 6 forks source link

refactor: update structure #128

Closed nicholaschuayunzhi closed 6 years ago

nicholaschuayunzhi commented 6 years ago

This pr aims to remove IDisplaceable and BlockFaceBehaviour.

For IDisplaceable: We can handle the highlighting of faces within each plugin and block movement information through delegates. However we must be careful in ensuring that highlighted faces can indeed be moved and vice versa. May need to check for more cases. Do need help to test.

Remove BlockFaceBehaviour: In many cases we do a GetComponent for both BlockFaceBehaviour and BlockBehaviour. Combining them into one script will be more performant.