manage 0.12.0

Manage assets and other resources
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(arbitrary_self_types)]

use std::collections::HashMap;

use crate::{data_manager::DataManager, resource_loader::ResourceLoader};

pub mod data_manager;
mod exists_managed;
pub mod managed;
pub mod resource_loader;

pub use exists_managed::*;
pub use refs::MainLock;

pub type DataStorage<T> = HashMap<String, refs::Own<T>>;

pub trait Managed: 'static + ResourceLoader + DataManager<Self> {}