01-10-2013, 08:07 PM
Why should a plugin need to know about its own object? We could make the API so that all functions work without knowing a single instance of a cPlugin. That would make the API a bit easier to grasp.
Internally, we could do that by defining our own global variable in the Lua environment and the API functions would read that variable if they needed the plugin object.
Internally, we could do that by defining our own global variable in the Lua environment and the API functions would read that variable if they needed the plugin object.