예제 #1
0
 public CubeBlock(Sector parent)
     : base(parent)
 {
 }
예제 #2
0
 public entity_misc(Sector parent)
     : base(parent)
 {
 }
예제 #3
0
 public CubeGrid(Sector parent)
     : base(parent)
 {
 }
예제 #4
0
 public Character(Sector parent)
     : base(parent)
 {
 }
예제 #5
0
 public EntityBase(Sector parent)
 {
     this.parent_sector = parent;
 }
예제 #6
0
 public VoxelMap(Sector parent) : base(parent)
 {
 }
예제 #7
0
 public VoxelMap(Sector parent)
     : base(parent)
 {
 }
예제 #8
0
 private void QuickLoadMenuItem1_Click(object sender, EventArgs e)
 {
     bool quick = false;
     DialogResult dialogResult = MessageBox.Show("Quick load is currently considered unstable, proceed with caution and always make a backup! \r\n\r\n  Hit 'Yes' to continue or 'No' to do a standard load.", "Quick load?", MessageBoxButtons.YesNo);
     if (dialogResult == DialogResult.Yes)
     {
         quick = true;
     }
     else if (dialogResult == DialogResult.No)
     {
         quick = false;
     }
     DialogResult result = fileopen.ShowDialog();
     if (result == DialogResult.OK)
     {
         string file = fileopen.FileName;
         this.sector = new Sector(this);
         SectorTree.Nodes.Clear();
         Log = this.sector.loadFromXML(file, loggingEnabled,quick);
         if (loggingEnabled)
             File.WriteAllText("./Log.txt", Log);
         Log = "";
         SectorTree.Nodes.Add(sector.getTreeNode());
         mirrorBlocksToolStripMenuItem.Visible = false;
     }
     else
     {
         //logger.Items.Add("Unable to load file");
     }
 }
예제 #9
0
 private void loadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DialogResult result = fileopen.ShowDialog();
     if (result == DialogResult.OK)
     {
         string file = fileopen.FileName;
         this.sector = new Sector(this);
         SectorTree.Nodes.Clear();
         Log = this.sector.loadFromXML(file,loggingEnabled);
         if (loggingEnabled)
             File.WriteAllText("./Log.txt", Log);
         Log = "";
         SectorTree.Nodes.Add(sector.getTreeNode());
         mirrorBlocksToolStripMenuItem.Visible = true;
     }
     else
     {
         //logger.Items.Add("Unable to load file");
     }
 }