use alloc::string::String;
use battler_data::{
Id,
MoveData,
};
use hashbrown::HashMap;
use serde::{
Deserialize,
Serialize,
};
/// Local data to an fxlang effect or condition.
///
/// Data here can be referenced by callbacks in the owning effect or condition.
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct LocalData {
/// Custom moves that can be used by the effect.
#[serde(default)]
pub moves: HashMap<Id, MoveData>,
/// Values that can be referenced by effect callbacks.
#[serde(default)]
pub values: HashMap<String, String>,
}