Browse Source

Initial render, fixed mod in main

master
Graham Northup 3 years ago
parent
commit
a588f03e25
Signed by: grissess GPG Key ID: 5D000E6F539376FB
  1. 4
      src/main.rs
  2. 8
      src/world/render.rs

4
src/main.rs

@ -1,11 +1,13 @@
extern crate termion;
extern crate rogue_util;
pub mod world;
use rogue_util::{coord::V2i, grid::region::{Region, RegionConfig}};
fn main() -> Result<(), rogue_util::grid::region::Error>
{
let world_grid: Region<Tile> = RegionConfig::default().build()?;
let world_grid: Region<world::Tile> = RegionConfig::default().build()?;
unimplemented!();
Ok(())
}

8
src/world/render.rs

@ -0,0 +1,8 @@
pub struct Neighbors<'a, T> {
ul: &'a T, u: &'a T, ur: &'a T,
l: &'a T, r: &'a T,
dl: &'a T, d: &'a T, dr: &'a T,
}
pub trait Renderable {
}
Loading…
Cancel
Save