generated from 2ndbeam/bevy-template
feat: Derive traits
This commit is contained in:
parent
0a0eb14a6b
commit
ffdb5d94a8
11 changed files with 115 additions and 79 deletions
|
|
@ -11,11 +11,12 @@ use crate::{
|
|||
},
|
||||
};
|
||||
|
||||
const CRATE_CLOSED_ASSET: &'static str = "sprites/interactive/crate_closed.png";
|
||||
|
||||
use super::*;
|
||||
|
||||
#[derive(Component)]
|
||||
const CRATE_CLOSED_ASSET: &'static str = "sprites/interactive/crate_closed.png";
|
||||
|
||||
#[derive(Component, Clone, Copy, Default, Reflect, Debug, PartialEq, Eq)]
|
||||
#[reflect(Component, Clone, Default, Debug, PartialEq)]
|
||||
#[require(Sprite, InteractiveObject, Inventory)]
|
||||
pub struct Container;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue