mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add server for game data (implement login sequence)
This commit is contained in:
17
rc_services_room/src/data/crf_config.rs
Normal file
17
rc_services_room/src/data/crf_config.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use polariton::operation::Typed;
|
||||
|
||||
pub struct RobotShopConfig {
|
||||
pub cpu_ranges: Vec<i32>,
|
||||
pub submission_mult: f32,
|
||||
pub earnings_mult: f32,
|
||||
}
|
||||
|
||||
impl RobotShopConfig {
|
||||
pub fn as_transmissible(&self) -> Typed {
|
||||
Typed::HashMap(vec![
|
||||
(Typed::Str("robotShopPriceRanges".into()), Typed::IntArr(self.cpu_ranges.clone().into())),
|
||||
(Typed::Str("submissionMultiplier".into()), Typed::Float(self.submission_mult)),
|
||||
(Typed::Str("earningsMultiplier".into()), Typed::Float(self.earnings_mult)),
|
||||
].into())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user