From 0f3eaa5ef5095a5dcaa06b5ee20cdea1c49ed844 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Thu, 25 Jul 2024 08:21:03 -0700 Subject: [PATCH] Derive Reflect for Player --- bevy-jornet/src/leaderboards.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bevy-jornet/src/leaderboards.rs b/bevy-jornet/src/leaderboards.rs index 476ff82..c76dc4e 100644 --- a/bevy-jornet/src/leaderboards.rs +++ b/bevy-jornet/src/leaderboards.rs @@ -4,7 +4,7 @@ use std::time::{SystemTime, UNIX_EPOCH}; use bevy::{ log::warn, - prelude::{Event, EventWriter, ResMut, Resource}, + prelude::{Event, EventWriter, Reflect, ResMut, Resource}, tasks::IoTaskPool, }; use hmac::{Hmac, Mac}; @@ -300,7 +300,7 @@ impl ScoreInput { } /// A player, as returned from the server -#[derive(Serialize, Deserialize, Debug, Clone)] +#[derive(Serialize, Deserialize, Debug, Clone, Reflect)] pub struct Player { /// its ID pub id: Uuid,