Example #1
0
        public Program()
        {
            MyIni         config   = ParseIni();
            List <string> sections = new List <string>();

            config.GetSections(sections);

            List <Role> roles = new List <Role>();

            foreach (string section in sections)
            {
                Echo($"Adding Role: {section}");
                //TODO: I'm so sorry...
                if (section.StartsWith("deposit"))
                {
                    continue;
                }
                roles.Add(RoleFactory.Build(section, config, this));
            }

            this.drone = new Drone(this, roles);
        }