예제 #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();
 }