Exemplo n.º 1
0
 /// <summary>
 /// Inizializza un contenitore di scene vuoto a partire dalla GameViewport che lo conterrà.
 /// </summary>
 public SceneContainer(GameViewport vp)
 {
     soundFX             = 50;
     musicVOL            = 50;
     this.gameVContainer = vp;
     this.scenes         = new SortedDictionary <byte, IIndipendentlyAnimable>();
     this.dir            = new ResourceDirectory();
     this.hasBegun       = false;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Inizializza un contenitore di scene basandosi su una lista di coppie (ID, Scena) a partire dalla GameViewport che lo conterrà.
 /// </summary>
 /// <param name="list">Lista di coppie (ID, Scena) (List(KeyValuePair(byte, IIndipendentlyAnimable)))</param>
 /// <param name="vp">Viewport a cui collegare il contenitore della scena</param>
 public SceneContainer(GameViewport vp, List <KeyValuePair <byte, IIndipendentlyAnimable> > list)
 {
     soundFX             = 50;
     musicVOL            = 50;
     this.gameVContainer = vp;
     this.scenes         = new SortedDictionary <byte, IIndipendentlyAnimable>();
     this.dir            = new ResourceDirectory();
     if (list != null)
     {
         foreach (KeyValuePair <byte, IIndipendentlyAnimable> pair in list)
         {
             scenes.Add(pair.Key, pair.Value);
         }
     }
     this.hasBegun = false;
 }