What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Extending Plugin Functionality

Terv

New Member
Joined
Aug 31, 2015
Messages
6
Reaction score
0
Hi All,

I'm trying to find a way to add functionality to other plugins (ExBuddy to be precise). I've created my own directory under Plugins and a class to contain the functionality:

Code:
namespace SomeNS
{
    public static class SomeClass
    {
        public static bool Until(double ezHour)
        {
            // run until we hit parameter time
        }
    }
}

This gets compiled and is fine until I try to use the functionality in ExBuddy's Fish tag:

Code:
<Fish Condition="SomeNS.SomeClass.Until(4)"> <!-- run until 4am -->
  ....
</Fish>

Once it gets to this in the profile I end up with the exception:

Code:
IronPython.Runtime.UnboundNameException: global name 'MyNS' is not defined

While I could put the code inside ExBuddy and within it's namespace (this does work) I'd like to keep the functionality outside of ExBuddy so that I don't have to patch it after re-installs (SoC is a good thing!).

Is there something I'm missing to register my namespace/class to make it usable across other plugins, or is there some from of sandboxing going on and this is not a possibility?

Thanks in advance!
 
Back
Top