コード例 #1
0
        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);
            }
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
        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");
        }
コード例 #4
0
 public void OnLevelChunkLoaded(LevelZoneChunkID levelZoneChunkID)
 {
     LevelChunkInteractiveObject.DestroyAllDestroyOnStartObjects();
     LevelManager.Get().OnLevelChunkLoaded(levelZoneChunkID);
 }
コード例 #5
0
 public LevelUnlockWorkflowActionV2(LevelZoneChunkID levelZoneChunkToUnlock)
 {
     this.levelZoneChunkToUnlock = levelZoneChunkToUnlock;
 }
コード例 #6
0
 public LevelHierarchyAddFeedLine(LevelHierarchyConfiguration levelHierarchyConfiguration, LevelZonesID levelZonesID, LevelZoneChunkID addedChunkID)
 {
     this.levelHierarchyConfiguration = levelHierarchyConfiguration;
     this.levelZonesID = levelZonesID;
     this.addedChunkID = addedChunkID;
 }