diff --git a/src/lib.rs b/src/lib.rs index fee254f..5e3db3e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,6 +104,18 @@ impl Universe { pub fn render(&self) -> String { self.to_string() } + + pub fn width(&self) -> u32 { + self.width + } + + pub fn height(&self) -> u32 { + self.height + } + + pub fn cells(&self) -> *const Cell { + self.cells.as_ptr() + } } impl fmt::Display for Universe { diff --git a/www b/www index bef70f4..e36fb20 160000 --- a/www +++ b/www @@ -1 +1 @@ -Subproject commit bef70f448235c03bffd69694f5455a14b4b150aa +Subproject commit e36fb207617a80c2aeb528d973a57c25407d77b6