about summary refs log tree commit diff
path: root/src/display/mod.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-14T18·29-0400
committerGriffin Smith <root@gws.fyi>2019-07-14T18·29-0400
commite7ad87c7301f266dece36e7558c0f212e370aac6 (patch)
tree7da150d5648cc0b17d973bf4a30673f36b20be82 /src/display/mod.rs
parent081146da30bcf1a17d9533c3dc9c735a3a558165 (diff)
Add (statically-included) entity raws
Add a system for statically-included entity raws (which necessitated
making a deserializable existential Color struct) and test it out by
initializing the game (for now) with a single on-screen gormlak.
Diffstat (limited to 'src/display/mod.rs')
-rw-r--r--src/display/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs
index 9e15a0d97d62..3e30200ac723 100644
--- a/src/display/mod.rs
+++ b/src/display/mod.rs
@@ -1,3 +1,4 @@
+pub mod color;
 pub mod draw_box;
 pub mod utils;
 pub mod viewport;
@@ -17,13 +18,13 @@ pub trait Draw: Positioned {
     fn do_draw(&self, out: &mut Write) -> io::Result<()>;
 }
 
-impl<T : Draw> Draw for &T {
+impl<T: Draw> Draw for &T {
     fn do_draw(&self, out: &mut Write) -> io::Result<()> {
         (**self).do_draw(out)
     }
 }
 
-impl<T : Draw> Draw for Box<T> {
+impl<T: Draw> Draw for Box<T> {
     fn do_draw(&self, out: &mut Write) -> io::Result<()> {
         (**self).do_draw(out)
     }