cPlugin_NewLua: why is it Lua-exported?
#21
Well, let me question this once again. If you want to call plugin A's function F, what do you do? Something along the lines of:
Code:
local PluginA = PluginManager:GetPlugin("PluginA");
PluginA:Call("FnName", Param1, Param2);

Why not do this instead?
Code:
PluginManager:CallPluginFunction("PluginA", "FnName", Param1, Param2);

No need for a cPlugin object, less code to write... And if MCServer ever supported other scripting languages, it could actually be made to work cross-language. Yuck.
Reply
Thanks given by:


Messages In This Thread
cPlugin_NewLua: why is it Lua-exported? - by xoft - 06-06-2012, 12:14 AM
RE: cPlugin_NewLua: why is it Lua-exported? - by xoft - 02-01-2013, 06:04 AM



Users browsing this thread: 2 Guest(s)