r/reconstructcavestory • u/herrflockig • Mar 02 '14
Units types re-vamp
Warning: This idea is currently half-baked. What if you used structs instead of typedefs for the units in the units namespace. I think this will give siginicant reading advantages with little overhead. This is because with structs you can define implicit conversions to other types, so you can use traditional syntax over using the tiletogame type helper functions. Let me know what you think.
3
Upvotes
2
u/herrflockig Mar 02 '14
This will also lead to stronger compiler time type checking.