示例#1
0
        public StructureEditor()
        {
            instance = this;

            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.PreferredBackBufferWidth  = SCREEN_WIDTH;
            graphics.PreferredBackBufferHeight = SCREEN_HEIGHT;
            graphics.ApplyChanges();

            Window.Title = "Structure Editor";
        }
示例#2
0
 public StructureEditPanel(Rectangle bounds, StructureEditor editor) : base(bounds)
 {
     blocks      = new HashSet <StructureBlockInfo>();
     this.editor = editor;
     Reset();
 }