|
1 | 1 | use bevy::prelude::*;
|
2 |
| -use bevy::reflect::{TypePath, TypeUuid}; |
| 2 | +use bevy::reflect::TypePath; |
3 | 3 | use bevy::utils::{HashMap, HashSet};
|
4 | 4 | use bevy_asset::Handle;
|
5 | 5 | use serde::{Deserialize, Serialize};
|
@@ -40,7 +40,7 @@ pub struct SpriteBundle {
|
40 | 40 | pub visible: Visible,
|
41 | 41 | }
|
42 | 42 |
|
43 |
| -#[derive(Copy, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Reflect, Default)] |
| 43 | +#[derive(Copy, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Default, TypePath)] |
44 | 44 | pub struct Colors {
|
45 | 45 | pub foreground: Option<Color>,
|
46 | 46 | pub background: Option<Color>,
|
@@ -149,7 +149,7 @@ mod attribute_parser {
|
149 | 149 | // impl Reflect for StyleAttributes {}
|
150 | 150 | // impl FromReflect for StyleAttributes {}
|
151 | 151 |
|
152 |
| -#[derive(Copy, Clone, Serialize, Deserialize, PartialEq, Eq, Reflect)] |
| 152 | +#[derive(Copy, Clone, Serialize, Deserialize, PartialEq, Eq)] |
153 | 153 | pub struct Style {
|
154 | 154 | pub colors: Colors,
|
155 | 155 | #[serde(with = "attribute_parser")]
|
@@ -206,8 +206,7 @@ impl Default for Style {
|
206 | 206 | }
|
207 | 207 | }
|
208 | 208 |
|
209 |
| -#[derive(Default, Serialize, Deserialize, PartialEq, Eq, TypeUuid, TypePath, Asset)] |
210 |
| -#[uuid = "a5418d12-e050-498a-a31e-37fd0b6c078d"] |
| 209 | +#[derive(Default, Serialize, Deserialize, PartialEq, Eq, TypePath, Asset)] |
211 | 210 | pub struct StyleMap {
|
212 | 211 | pub style: Style,
|
213 | 212 | pub map: Vec<Vec<Style>>,
|
@@ -301,8 +300,7 @@ impl Visible {
|
301 | 300 | }
|
302 | 301 | }
|
303 | 302 |
|
304 |
| -#[derive(Default, Eq, PartialEq, Debug, TypeUuid, Reflect, Asset)] |
305 |
| -#[uuid = "f04f5352-e656-4a90-95a5-2269c02d0091"] |
| 303 | +#[derive(Default, Eq, PartialEq, Debug, Reflect, Asset)] |
306 | 304 | pub struct Sprite {
|
307 | 305 | // The whole sprites's data
|
308 | 306 | data: String,
|
|
0 commit comments