JaneDoe-ZS/nap_gameserver/src/logic/gacha/gacha_model.rs

18 lines
317 B
Rust
Raw Normal View History

2024-07-30 02:41:18 +00:00
use proto::GachaModelBin;
#[derive(Default)]
pub struct GachaModel {
pub gacha_bin: GachaModelBin,
}
impl GachaModel {
pub fn from_bin(gacha_bin: GachaModelBin) -> Self {
Self {
gacha_bin
}
}
pub fn to_bin(&self) -> GachaModelBin {
self.gacha_bin.clone()
}
}