This file contains hidden or 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 hidden or 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, | |
| }; |
This file contains hidden or 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 crate::{ | |
| camera::Camera, | |
| simulation::{Grid, Simulation}, | |
| }; | |
| use lazy_vulkan::StateFamily; | |
| use shader_slang::{self as slang, Downcast}; | |
| use std::{ | |
| cell::RefCell, | |
| rc::Rc, | |
| time::{Duration, Instant}, |
OlderNewer