1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//! Library to simplify using code generated by
//! [entity_store_code_gen](https://crates.io/crates/entity_store_code_gen).
extern crate serde;
#[macro_use] extern crate serde_derive;

// handy re-exports
pub extern crate direction;
pub extern crate cgmath;
pub extern crate num;
pub extern crate append;
pub extern crate grid_2d;

mod neighbour_count;
mod id_allocator;

pub use self::neighbour_count::NeighbourCount;
pub use self::id_allocator::IdAllocator;

/// Expands to the code generated by
/// [entity_store_code_gen](https://crates.io/crates/entity_store_code_gen).
/// Example usage:
///
/// ```
/// mod entity_store {
///     include_entity_store();
/// }
/// ```
#[macro_export]
macro_rules! include_entity_store {
    ($filename:expr) => {
        include!(concat!(env!("OUT_DIR"), concat!("/", $filename)));
    }
}