Example #1
0
 public Scene()
 {
     dialogs = new DialogSystem();
     sceneResources = new ResourceManager();
     jukebox = new Jukebox(sceneResources);
     entityTable = new Dictionary<string, Entity>();
     AddEntity(player = new EntityPlayer());
 }
 public DialogNode(DialogSystem dialogs, string 
     name, string text, params DialogNode[] response)
 {
     this.Dialogs = dialogs;
     this.Name = name;
     this.Text = text;
     this.Variants = response;
 }
Example #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (jukebox != null)
         {
             if (!jukebox.IsDisposed)
                 jukebox.Dispose();
             jukebox = null;
         }
         if (dialogs != null)
         {
             if (!dialogs.IsDisposed)
                 dialogs.Dispose();
             dialogs = null;
         }
         if (sceneResources != null)
         {
             if (!sceneResources.IsDisposed)
                 sceneResources.Dispose();
             sceneResources = null;
         }
         if (entityTable != null)
         {
             entityTable.Clear();
             entityTable = null;
         }
     }
     base.Dispose(disposing);
 }