This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use hecs::{Component, ComponentError, ComponentRef, DynamicBundle, QueryBorrow, World}; | |
use std::{marker::PhantomData, ops::Deref, ptr::NonNull}; | |
/// Wrapper around [World] to conceal evil-doing. | |
#[derive(Default)] | |
pub struct ECS { | |
world: World, | |
} | |
impl ECS { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Useful wrappers around [common::hecs::World] | |
//! | |
use std::{any::TypeId, collections::HashMap, marker::PhantomData}; | |
use common::{ | |
anyhow, | |
hecs::{self, EntityBuilder, EntityRef, World}, | |
serde::{self, de::DeserializeOwned, Deserialize, Serialize}, | |
serde_json, | |
}; |
OlderNewer