derive macro for actions

This commit is contained in:
awtterpip
2024-03-28 20:00:54 -05:00
parent 42dc01dc6a
commit a299702f7a
5 changed files with 134 additions and 15 deletions

View File

@@ -3,6 +3,7 @@ use std::{any::TypeId, marker::PhantomData};
use bevy::app::{App, Plugin};
use bevy::ecs::system::Resource;
use bevy::math::Vec2;
pub use bevy_xr_macros::Action;
pub struct ActionPlugin<A: Action>(PhantomData<A>);