public CubeBlock(Sector parent) : base(parent) { }
public entity_misc(Sector parent) : base(parent) { }
public CubeGrid(Sector parent) : base(parent) { }
public Character(Sector parent) : base(parent) { }
public EntityBase(Sector parent) { this.parent_sector = parent; }
public VoxelMap(Sector parent) : base(parent) { }
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"); } }
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"); } }