示例#1
0
    public EasyBlocks Run(EasyAPI api, string type = "public")
    {
        for (int i = 0; i < this.Blocks.Count; i++)
        {
            this.Blocks[i].Run(api, type);
        }

        return(this);
    }
示例#2
0
    public EasyBlock Run(EasyAPI api, string type = "public")
    {
        var cmd = new EasyCommands(api);

        switch (type)
        {
        case "private":
            cmd.handle(this.GetCustomData());
            break;

        default:
            cmd.handle(this.GetPublicText());
            break;
        }

        return(this);
    }
示例#3
0
    /*** Constructors ***/

    public EasyCommands(EasyAPI api)
    {
        this.api = api;
    }