IrcShark.Extensions.Scripting.Msl.MslScriptEngine.MslScriptEngine C# (CSharp) Method

MslScriptEngine() public method

Initializes a new instance of the MslScriptEngine class.
public MslScriptEngine ( ) : System
return System
        public MslScriptEngine()
        {
            language = new LanguageDefinition("MSL", new string[] { "mrc", "ini" }, LanguageFeatures.Procedural | LanguageFeatures.TypeSave);
            publishedMethods = new MethodCollection();
            Type scriptTextMethods = typeof(MslStringMethods);
            MethodInfo info = scriptTextMethods.GetMethod("Left");
            publishedMethods.Add("+", new MultiParamIdentifierDelegate(MslStringMethods.Concat));
            publishedMethods.Add("left", new MslStringMethods.LeftDelegate(MslStringMethods.Left));
            publishedMethods.Add("me", new SimpleStringIdentifier(MslDummyMethods.Me));
            publishedMethods.Add("true", new SimpleStringIdentifier(MslDummyMethods.True));
            publishedMethods.Add("false", new SimpleStringIdentifier(MslDummyMethods.False));
        }