vaendryl / Sunrider

source code of the visual novel 'Sunrider'
http://sunrider-vn.com/
41 stars 21 forks source link

Make dispatcher robust #119

Closed DoumanAsh closed 9 years ago

DoumanAsh commented 9 years ago

Some refactoring of dispatcher look-up. Purely string only keys are better to use

DoumanAsh commented 9 years ago

Actually i have some better idea for refactory. We can use tuples as keys: (Type, even) and we could use only 1 dispatcher for that instead of having 3 :) but im lazy...

EnderShadow commented 9 years ago

I like it. I'll merge in the morning unless Vaendryl says not to.

EnderShadow commented 9 years ago

I also like the idea of using tuples

vaendryl commented 9 years ago

I'm okay with trying this.