1
0
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:
NGnius (Graham)
2025-02-12 18:46:27 -05:00
parent ca4a0ce675
commit d8885d811f
52 changed files with 2734 additions and 5 deletions

View 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())
}
}