public override string ComputeWarningState(AbstractCreationWizardEditorProfile editorProfile) { this.InitProperties(); return(new List <string>() { ErrorHelper.AlreadyPresentInConfigurationV2(this.EditorInformationsData.SelectedKey, this.EditorInformationsData.CommonGameConfigurations.GetConfiguration(this.AllConfigurationTypes[this.selectedTypeIndex])) }.Find(s => !string.IsNullOrEmpty(s))); }
public override string ComputeWarningState(AbstractCreationWizardEditorProfile editorProfile) { this.InitProperties(); return(new List <string>() { ErrorHelper.AlreadyPresentInConfigurationV2(this.EditorInformationsData.LevelZonesID, this.EditorInformationsData.CommonGameConfigurations.GetConfiguration <LevelZonesSceneConfiguration>()), ErrorHelper.AlreadyPresentInConfigurationV2(this.EditorInformationsData.LevelZonesID, this.EditorInformationsData.CommonGameConfigurations.GetConfiguration <LevelHierarchyConfiguration>()), ErrorHelper.NotAlreadyPresentInConfiguration(this.EditorInformationsData.AssociatedAdventureLevelID, this.EditorInformationsData.CommonGameConfigurations.GetConfiguration <LevelHierarchyConfiguration>().GetKeys(), typeof(LevelHierarchyConfiguration).Name) } .Find((s) => !string.IsNullOrEmpty(s))); }