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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

ConditionParser

Psicu

New Member
Joined
Feb 1, 2015
Messages
20
Hey guys,

What's the best way for me to create a ConditionParser? Should be something like this? Do I need to use XmlElement?

Thank you

Code:
namespace ff14bot.NeoProfiles
{
    public class GetCount : ConditionParser
    {
        public static int GetCount(uint a)
        {
            if (MainFun.Counter.ContainsKey(a))
            {
                return MainFun.Counter[a];
            }
            return 0;

        }
    }
}
 
Not even close.

First ConditionParser is a static class and as such cannot be inherited.

Second anything that is static can be accessed.

ie:

Code:
namespace ff14bot.Managers
{
public static class myclass
{
public static int InterestingFunction(bool boringvariable)
{
return int.MaxValue;
}
}

}

Could be accessed just by doing Condition="myclass.InterestingFunction(false)"
 
Back
Top