johnbanq

Results 18 comments of johnbanq

@codehz Hello? Is this an acceptable refactor? I dunno is there any plugin using them and how many of them will this break

A quick view through the modloader's code shows that the problem of loading a mod multiple times does not exists,every .so gets loaded only once. I am simply considering putting...

oh,then the need of extraction is gone,but can we at least pack event handler functions into namespaces? I am still trying to find a way to do so. Can we...

Eg: onPlayerJoined -> event.onPlayerJoined All Minecraft classes are left in the global IntParamDef are defined in global scope and also aliased in cmd namespace,like cmd.IntParamDef

but do we need them now? Any instance we have in the current version would require overloading?

maybe we can get around with this on the C++ side by dispatches?

um... using global objects? well,I guess I will have to give up the idea of organizing functions by namespaces

I guess we cant modify the source strucure without making the entire library monolithic(is it possible to adjust the organization of the codebase after merging?) will go with the global...

I did thought about JS scripting, but what about performance? The official addon mechanism is asynchronous and you can only watch things happen, not manipulate them on the go.