mrtrizer / FlappyEngine

FlappyEngine is a component-based 2d game engine written in C++ and Js in early stage of development.
4 stars 0 forks source link

Link generated wrappers to V8JSEngine module instead of project #106

Closed mrtrizer closed 6 years ago

mrtrizer commented 6 years ago

This is needed to get access to wrappers from module itself and avoid using of public global variables.

mrtrizer commented 6 years ago

This is a fucking stupid idea.

If you link a wrappers to the V8JSEngine, then yes, you will be able to call getV8Wrappers() from V8JSManager but you will not be able to wrap classes outside of V8JSEngine, including classes of a project.

The worst thing is that I've already implemented this last night. How stupid is this ...