Esempio n. 1
0
 public EditorTool(EditorScreen screen, WorldEditor editor,
                   EditorToolType type, Key keyBind)
 {
     Renderer = screen.Window.Renderer;
     Editor   = editor;
     UI       = screen.UI;
     Screen   = screen;
     Type     = type;
     KeyBind  = keyBind;
 }
        public EditorScreen(MainWindow window, MasterRenderer renderer)
        {
            this.Window   = window;
            this.renderer = renderer;

            World       = new EditorWorld(this);
            UI          = new EditorUI(renderer, this);
            WorldEditor = new WorldEditor(this);

            //LoadWorld("Content/Worlds/rockyc.aosw");
        }
        public TerrainEditorTool(EditorScreen screen, WorldEditor editor,
                                 EditorToolType type, Key keyBind)
            : base(screen, editor, type, keyBind)
        {
            TerrainEditor = Editor.TerrainEditor;
            entRenderer   = Renderer.GetRenderer3D <EntityRenderer>();

            if (cursorCube == null)
            {
                cursorCube = new DebugCube(Color4.White, Block.CUBE_SIZE);
            }
        }
 public void Draw()
 {
     WorldEditor.Draw();
     World.Draw();
 }
 public void Update(float deltaTime)
 {
     WorldEditor.Update(deltaTime);
     World.Update(deltaTime);
     UI.Update(deltaTime);
 }