datalurkur / Mountainhome

A detailed and intricate worldsim borrowing from the Dungeon Keeper-style dungeon-building mechanic
You're lookin' at it.
6 stars 2 forks source link

Come up with a nicer solution for bindings #72

Closed StLoch closed 14 years ago

StLoch commented 14 years ago

The current system has lots of duplication and is kind of a pain in the ass. It definitely needs some refactoring to get rid of the duplication, and we may want to consider totally divorcing bindings from the c++ object. Not sure if this is a great idea as the concepts are all closely related. At very least, the static functions and object functions of bound classes need to be better separated for readability.

datalurkur commented 14 years ago

I don't know about divorcing the bindings from the C++ object, but amen to the duplication pains. I'm a little hesitant to suggest that we generate them using macros, since that would turn debugging them into a nightmare. Perhaps there's some way we can template setters and accessors for bound objects?

StLoch commented 14 years ago

CLOSE DAMN YOU!