How were you planning on doing the processor. I started on it, but then we had dinner. Maybe you had a different approach in mind:
I'm still using the explicit commands because I can now easily create aliases. Or should I do it like
m_PluginManager = nil m_Plugin = nil m_ShouldReload = false function Initialize(Plugin) m_Plugin = Plugin Plugin:SetName("DocumentPlugin") Plugin:SetVersion(1) m_PluginManager = cRoot:Get():GetPluginManager() cPluginManager.AddHook(cPluginManager.HOOK_TICK, OnTick) return true end function OnTick() if m_ShouldReload then m_PluginManager:DisablePlugin(m_Plugin:GetName()) m_PluginManager:LoadPlugin(m_Plugin:GetDirectory()) end end function DocumentPlugin(Plugin, FileName) local Folder = Plugin:GetLocalFolder() dofile(Folder .. "/" .. FileName) -- Process the g_PluginInfo table m_ShouldReload = true return true end
I'm still using the explicit commands because I can now easily create aliases. Or should I do it like
["/ascend"] = { Alias = "/asc", -- etc },instead of
Ascend = { Command = "/ascend;/asc", -- etc },