Skip to content

Instantly share code, notes, and snippets.

View Kromey's full-sized avatar
🦀

Travis Veazey Kromey

🦀
View GitHub Profile
@Kromey
Kromey / system_chain.rs
Created March 20, 2019 21:35 — forked from jaynus/system_chain.rs
pretty triangles
use crate::components;
use amethyst::ecs::{self, prelude::*, shred::ResourceId};
pub trait EventSystem<'a> {
type SystemData: ecs::SystemData<'a>;
type Event: Sized;
fn run(data: &Self::SystemData, event: &mut Self::Event) -> bool;