public virtual void Initialize(TaskSettingsBase settings)
 {
     _settings   = settings;
     _randomSeed = System.Environment.TickCount;
     // Todo: Load actual values from file
     // save progress, seed, setting key when it will implemented
 }
Example #2
0
        public ITask AddTask(TaskSettingsBase taskSettings)
        {
            ITask newTask = taskSettings.CreateNewTask();

            _taskList.Add(newTask);
            newTask.Initialize(taskSettings);
            _onTaskChanged?.Invoke(TaskEventType.Added, newTask);
            return(newTask);
        }
 public override void Initialize(TaskSettingsBase settings)
 {
     base.Initialize(settings);
     _settings = (BasicTaskSettings)settings;
 }