underworld_core 0.6.3

Small library to either play a game or assist in generating rooms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "bevy_components")]
use bevy_ecs::prelude::Component;
use chrono::{DateTime, Utc};
#[cfg(feature = "serialization")]
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::components::spells::Spell;

#[derive(Clone, Debug)]
#[cfg_attr(feature = "bevy_components", derive(Component))]
#[cfg_attr(feature = "serialization", derive(Deserialize, Serialize))]
pub struct PlayerSpellLearned {
    pub spell_id: Uuid,
    pub learned_at: DateTime<Utc>,
    pub spell: Spell,
}