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
34
35
36
37
38
39
40
41
42
43
//! A library for building collectible card and gacha games.
//!
//! # Architecture
//!
//! Akashi uses an Entity-Component-System architecture (though at the
//! moment only Entities and Components are really implemented).
//!
//! Players and cards, within the Akashi framework, are **entities**:
//! they aren't much more than a unique ID. Functionality is added by
//! attaching various **components** to entities.
//! For example, inventories can be represented as components that
//! are attached to players, while card images and text can be
//! represented as components attached to cards.

#[macro_use]
extern crate failure;

#[macro_use]
extern crate rental;

extern crate dashmap;
extern crate downcast_rs;
extern crate failure_derive;

pub mod card;
pub mod components;
pub mod ecs;
pub mod local_storage;
pub mod player;
pub mod snowflake;
mod util;

#[doc(inline)]
pub use card::Card;

#[doc(inline)]
pub use ecs::{Component, ComponentBackend, Entity, EntityBackend, EntityManager};

#[doc(inline)]
pub use player::Player;

#[doc(inline)]
pub use snowflake::{Snowflake, SnowflakeGenerator};