コード例 #1
0
 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
 }
コード例 #2
0
        public ITask AddTask(TaskSettingsBase taskSettings)
        {
            ITask newTask = taskSettings.CreateNewTask();

            _taskList.Add(newTask);
            newTask.Initialize(taskSettings);
            _onTaskChanged?.Invoke(TaskEventType.Added, newTask);
            return(newTask);
        }
コード例 #3
0
 public override void Initialize(TaskSettingsBase settings)
 {
     base.Initialize(settings);
     _settings = (BasicTaskSettings)settings;
 }