public object Clone()
        {
            var clone = new BotClass
            {
                AntiIdle            = AntiIdle.Copy(),
                ChartStats          = ChartStats.Copy(),
                CreateWindowsUser   = CreateWindowsUser.Copy(),
                D3PrefsLocation     = D3PrefsLocation.Copy(),
                Demonbuddy          = Demonbuddy.Copy(),
                Description         = Description.Copy(),
                Diablo              = Diablo.Copy(),
                DiabloCloneLocation = DiabloCloneLocation.Copy(),
                Name                = Name.Copy(),
                ProfileSchedule     = new ProfileScheduleClass(),
                UseDiabloClone      = UseDiabloClone.Copy(),
                UseWindowsUser      = UseWindowsUser.Copy(),
                Week                = Week.Copy(),
                WindowsUserName     = WindowsUserName.Copy(),
                WindowsUserPassword = WindowsUserPassword.Copy()
            };

            foreach (var profile in ProfileSchedule.Profiles)
            {
                clone.ProfileSchedule.Profiles.Add(profile);
            }
            return(clone);
        }
Exemple #2
0
        public void Write(Bot.BotClass bot, string format, params object[] args)
        {
            if (bot == null)
            {
                WriteGlobal(format, args);
                return;
            }
            var output = string.Format("[{0}] <{1}> {2}", DateTime.Now, bot.Name, string.Format(format, args));

            instance.AddBuffer(output);
            addToRTB(output);
        }
Exemple #3
0
        public object Clone()
        {
            BotClass clone = new BotClass()
            {
                AntiIdle            = this.AntiIdle,
                ChartStats          = this.ChartStats,
                CreateWindowsUser   = this.CreateWindowsUser,
                D3PrefsLocation     = this.D3PrefsLocation,
                Demonbuddy          = this.Demonbuddy,
                Description         = this.Description,
                Diablo              = this.Diablo,
                DiabloCloneLocation = this.DiabloCloneLocation,
                Name                = this.Name,
                ProfileSchedule     = this.ProfileSchedule,
                UseDiabloClone      = this.UseDiabloClone,
                UseWindowsUser      = this.UseWindowsUser,
                Week                = this.Week,
                WindowsUserName     = this.WindowsUserName,
                WindowsUserPassword = this.WindowsUserPassword
            };

            return(clone);
        }