Dynamic scene loader.  
 More...
Inherits Node.
Dynamic scene loader. 
Definition at line 10 of file SceneLoader.cs.
◆ GetChapterNames()
  
  | 
        
          | List<string> Examples.SceneLoader.GetChapterNames | ( |  | ) |  |  | inline | 
 
Get chapter names. 
- Returns
- Chapter names
Definition at line 71 of file SceneLoader.cs.
 
 
◆ GetCurrentChapterSampleNames()
  
  | 
        
          | List<string> Examples.SceneLoader.GetCurrentChapterSampleNames | ( |  | ) |  |  | inline | 
 
Get current chapter sample names. 
- Returns
- Sample names
Definition at line 41 of file SceneLoader.cs.
   43             if (currentChapter != 
"")
 
   45                 return scenesList[currentChapter];
 
   49                 return new List<string>();
 
 
 
 
◆ GetCurrentChapterSamplesCount()
  
  | 
        
          | int Examples.SceneLoader.GetCurrentChapterSamplesCount | ( |  | ) |  |  | inline | 
 
Get current chapter sample count. 
- Returns
- Sample count
Definition at line 57 of file SceneLoader.cs.
   59             if (currentChapter != 
"")
 
   61                 return scenesDict[currentChapter].Count;
 
 
 
 
◆ GetCurrentSample()
  
  | 
        
          | PackedScene Examples.SceneLoader.GetCurrentSample | ( |  | ) |  |  | inline | 
 
Get current sample scene. 
- Returns
- Sample scene
Definition at line 80 of file SceneLoader.cs.
   82             if (currentChapter != 
"" && currentScene != 
"")
 
   84                 return scenesDict[currentChapter][currentScene];
 
 
 
 
◆ GetNextChapterId()
  
  | 
        
          | int Examples.SceneLoader.GetNextChapterId | ( |  | ) |  |  | inline | 
 
Get next chapter index. Returns '-1' if next chapter does not exist. 
- Returns
- Chapter index
Definition at line 159 of file SceneLoader.cs.
  161             if (currentChapter != 
"")
 
  163                 int chapPos = chaptersList.IndexOf(currentChapter);
 
  164                 if (chapPos == chaptersList.Count - 1)
 
 
 
 
◆ GetNextSampleId()
  
  | 
        
          | int Examples.SceneLoader.GetNextSampleId | ( |  | ) |  |  | inline | 
 
Get next sample index. Returns '-1' if next sample does not exist. 
- Returns
- Sample index
Definition at line 113 of file SceneLoader.cs.
  115             if (currentChapter != 
"" && currentScene != 
"")
 
  117                 var scenePos = scenesList[currentChapter].IndexOf(currentScene);
 
  118                 if (scenePos == scenesList[currentChapter].Count - 1)
 
 
 
 
◆ GetPrevChapterId()
  
  | 
        
          | int Examples.SceneLoader.GetPrevChapterId | ( |  | ) |  |  | inline | 
 
Get previous chapter index. Returns '-1' if previous chapter does not exist. 
- Returns
- Chapter index
Definition at line 182 of file SceneLoader.cs.
  184             if (currentChapter != 
"")
 
  186                 int chapPos = chaptersList.IndexOf(currentChapter);
 
  189                     return chaptersList.Count - 1;
 
 
 
 
◆ GetPrevSampleId()
  
  | 
        
          | int Examples.SceneLoader.GetPrevSampleId | ( |  | ) |  |  | inline | 
 
Get previous sample index. Returns '-1' if previous sample does not exist. 
- Returns
- Sample index
Definition at line 136 of file SceneLoader.cs.
  138             if (currentChapter != 
"" && currentScene != 
"")
 
  140                 var scenePos = scenesList[currentChapter].IndexOf(currentScene);
 
 
 
 
◆ ScenesLoaded()
      
        
          | delegate void Examples.SceneLoader.ScenesLoaded | ( |  | ) |  | 
      
 
Signal sent when all scenes are loaded 
 
 
◆ SetCurrentChapter()
  
  | 
        
          | void Examples.SceneLoader.SetCurrentChapter | ( | string | name | ) |  |  | inline | 
 
Set current chapter from name. 
- Parameters
- 
  
  
Definition at line 103 of file SceneLoader.cs.
  105             currentChapter = name;
 
 
 
 
◆ SetCurrentSample()
  
  | 
        
          | void Examples.SceneLoader.SetCurrentSample | ( | string | name | ) |  |  | inline | 
 
Set current sample from name. 
- Parameters
- 
  
  
Definition at line 94 of file SceneLoader.cs.
 
 
◆ SampleNameMaxLength
  
  | 
        
          | const int Examples.SceneLoader.SampleNameMaxLength = 30 |  | static | 
 
 
The documentation for this class was generated from the following file: