Blueprint

<
>
December 9, 2020

Today I added very basic Blueprint support for defining the positions of buildings (or structures) and added a simple text renderer for it. This is far from pretty but is easier than just staring at code.

    let mut bp = Blueprint::default();

    bp.structures[0][0] = Some(Structure::Module(Module::default()));
    bp.structures[0][3] = Some(Structure::Module(Module::default()));
    bp.structures[5][5] = Some(Structure::Module(Module::default()));
    bp.structures[5][6] = Some(Structure::Module(Module::default()));
    bp.structures[5][7] = Some(Structure::Module(Module::default()));

    render(&bp);
M  M      
          
          
          
          
     MMM