public void RemovePuzzleChunkLevel(LevelZonesID levelZonesID, LevelZoneChunkID levelZoneChunkID) { var foundInherentData = this.ConfigurationInherentData[levelZonesID]; if (foundInherentData.LevelHierarchy == null) { foundInherentData.LevelHierarchy = new List <LevelZoneChunkID>(); } if (foundInherentData.LevelHierarchy.Contains(levelZoneChunkID)) { foundInherentData.LevelHierarchy.Remove(levelZoneChunkID); EditorUtility.SetDirty(foundInherentData); } }
private void UpdateLevelHierarchyConfiguration(LevelHierarchyConfiguration LevelHierarchyConfiguration, LevelZonesID levelZonesID, LevelZoneChunkID levelZoneChunkID, ref AbstractCreationWizardEditorProfile editorProfile) { if (levelZonesID != LevelZonesID.NONE) { LevelHierarchyConfiguration.AddPuzzleChunkLevel(levelZonesID, levelZoneChunkID); editorProfile.LevelHierarchyAdded(LevelHierarchyConfiguration, levelZonesID, levelZoneChunkID); } }
public static string BuilChunkPath(string LevelBasePath, LevelZonesID AdventureLevelID, LevelZoneChunkID LevelZoneChunkID) { var directoryPath = LevelBasePath + "/" + AdventureLevelID.ToString(); if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); } directoryPath = directoryPath + "/Chunks"; if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); } return(directoryPath + "/" + LevelZoneChunkID.ToString() + "_Chunk.unity"); }
public void OnLevelChunkLoaded(LevelZoneChunkID levelZoneChunkID) { LevelChunkInteractiveObject.DestroyAllDestroyOnStartObjects(); LevelManager.Get().OnLevelChunkLoaded(levelZoneChunkID); }
public LevelUnlockWorkflowActionV2(LevelZoneChunkID levelZoneChunkToUnlock) { this.levelZoneChunkToUnlock = levelZoneChunkToUnlock; }
public LevelHierarchyAddFeedLine(LevelHierarchyConfiguration levelHierarchyConfiguration, LevelZonesID levelZonesID, LevelZoneChunkID addedChunkID) { this.levelHierarchyConfiguration = levelHierarchyConfiguration; this.levelZonesID = levelZonesID; this.addedChunkID = addedChunkID; }