Skip to content

Commit

Permalink
Remove some reflect macros to make the prod build pass
Browse files Browse the repository at this point in the history
  • Loading branch information
haihala committed Dec 26, 2023
1 parent ae8674b commit 4c82e6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/characters/src/actions/action_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{Attack, FlashRequest, Movement, ResourceType};

use super::AnimationRequest;

#[derive(Debug, Clone, PartialEq, Default, Reflect)]
#[derive(Debug, Clone, PartialEq, Default)]
pub enum ActionEvent {
Animation(AnimationRequest),
Consume(ItemId),
Expand Down
2 changes: 1 addition & 1 deletion client/characters/src/actions/attack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use wag_core::{ActionId, HIT_FLASH_COLOR};

use crate::{ActionEvent, FlashRequest, Movement, ResourceType, ToHit};

#[derive(Debug, Clone, PartialEq, Component, Reflect)]
#[derive(Debug, Clone, PartialEq, Component)]
pub struct Attack {
pub to_hit: ToHit,
pub self_on_hit: Vec<ActionEvent>,
Expand Down
3 changes: 1 addition & 2 deletions client/player_state/src/player_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ enum MainState {
Ground(usize),
}

#[derive(Reflect, Debug, Component, Clone)]
#[reflect(Component)]
#[derive(Component, Debug, Clone)]
pub struct PlayerState {
main: MainState,
pub free_since: Option<usize>,
Expand Down

0 comments on commit 4c82e6b

Please sign in to comment.