RLTK now successfully wraps for use in the roguelike tutorial without having to make tutorial changes.
@@ -3,6 +3,17 @@ pub use bracket_lib::prelude::BTerm as Rltk;
pub use bracket_lib::prelude::BTermBuilder as RltkBuilder;
pub use bracket_lib::prelude::rex;
+#[macro_export]
+macro_rules! link_resource {
+ ($resource_name : ident, $filename : expr) => {
+ rltk::EMBED
+ .lock()
+ .unwrap()
+ .add_resource($filename.to_string(), $resource_name);
+ };
+}
+
pub mod prelude {
pub use crate::*;
+ pub use crate::link_resource;
}
\ No newline at end of file
