Skip to content

Can't hook functions in Lua #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
qoh opened this issue Sep 21, 2015 · 1 comment
Open

Can't hook functions in Lua #3

qoh opened this issue Sep 21, 2015 · 1 comment

Comments

@qoh
Copy link
Owner

qoh commented Sep 21, 2015

I don't even know how to begin to approach this. Creating packages directly in Lua would probably be a mess. Should the user just be required to make a package in TorqueScript that uses luaCall?

@qoh
Copy link
Owner Author

qoh commented Sep 21, 2015

On the other hand, it looks like creating packages might not actually be that complex. Or well, creating functions in packages.

           Namespace::unlinkPackages();
           ns = Namespace::find(fnNamespace, fnPackage);
           ns->addFunction(fnName, this, hasBody ? ip : 0);// if no body, set the IP to 0
           Namespace::relinkPackages();

Would need to figure out Parent:: too. Which Namespace do you get mParent from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant