mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Implement minimal chat service, fix some implement bugs
This commit is contained in:
@@ -6,6 +6,7 @@ use polariton::operation::{ParameterTable, Typed, Dict};
|
||||
use crate::data::cube_list::*;
|
||||
|
||||
const PARAM_KEY: u8 = 1;
|
||||
// const DEFAULT_CUBE_ID: u32 = 227205318;
|
||||
|
||||
pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(ParameterTable, &crate::UserTy) -> Result<ParameterTable, i16>) + Sync + Sync> {
|
||||
SimpleFunc::new(|params, _| {
|
||||
@@ -22,7 +23,7 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: 1,
|
||||
category: crate::data::weapon_list::ItemCategory::NoFunction,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
@@ -35,7 +36,133 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible())
|
||||
}.as_transmissible()),
|
||||
(Typed::Str("0".into()), CubeInfo {
|
||||
cpu: 1,
|
||||
health: 1,
|
||||
health_boost: 1.0,
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: crate::data::weapon_list::ItemCategory::Laser,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
league_unlock_index: 1,
|
||||
stats: HashMap::default(),
|
||||
description: "This is a very descriptive description".to_string(),
|
||||
size: ItemTier::T0,
|
||||
type_: ItemType::Weapon,
|
||||
ranking: 1,
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible()),
|
||||
(Typed::Str("1".into()), CubeInfo {
|
||||
cpu: 1,
|
||||
health: 1,
|
||||
health_boost: 1.0,
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: crate::data::weapon_list::ItemCategory::Laser,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
league_unlock_index: 1,
|
||||
stats: HashMap::default(),
|
||||
description: "This is a very descriptive description".to_string(),
|
||||
size: ItemTier::T1,
|
||||
type_: ItemType::Weapon,
|
||||
ranking: 1,
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible()),
|
||||
(Typed::Str("2".into()), CubeInfo {
|
||||
cpu: 1,
|
||||
health: 1,
|
||||
health_boost: 1.0,
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: crate::data::weapon_list::ItemCategory::Laser,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
league_unlock_index: 1,
|
||||
stats: HashMap::default(),
|
||||
description: "This is a very descriptive description".to_string(),
|
||||
size: ItemTier::T2,
|
||||
type_: ItemType::Weapon,
|
||||
ranking: 1,
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible()),
|
||||
(Typed::Str("3".into()), CubeInfo {
|
||||
cpu: 1,
|
||||
health: 1,
|
||||
health_boost: 1.0,
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: crate::data::weapon_list::ItemCategory::Laser,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
league_unlock_index: 1,
|
||||
stats: HashMap::default(),
|
||||
description: "This is a very descriptive description".to_string(),
|
||||
size: ItemTier::T3,
|
||||
type_: ItemType::Weapon,
|
||||
ranking: 1,
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible()),
|
||||
(Typed::Str("4".into()), CubeInfo {
|
||||
cpu: 1,
|
||||
health: 1,
|
||||
health_boost: 1.0,
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: crate::data::weapon_list::ItemCategory::Laser,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
league_unlock_index: 1,
|
||||
stats: HashMap::default(),
|
||||
description: "This is a very descriptive description".to_string(),
|
||||
size: ItemTier::T4,
|
||||
type_: ItemType::Weapon,
|
||||
ranking: 1,
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible()),
|
||||
(Typed::Str("5".into()), CubeInfo {
|
||||
cpu: 1,
|
||||
health: 1,
|
||||
health_boost: 1.0,
|
||||
grey_out_in_tutorial: false,
|
||||
visibility: VisibilityMode::All,
|
||||
indestructible: true,
|
||||
category: crate::data::weapon_list::ItemCategory::Laser,
|
||||
placements: 63,
|
||||
protonium: false,
|
||||
unlocked_by_league: false,
|
||||
league_unlock_index: 1,
|
||||
stats: HashMap::default(),
|
||||
description: "This is a very descriptive description".to_string(),
|
||||
size: ItemTier::T5,
|
||||
type_: ItemType::Weapon,
|
||||
ranking: 1,
|
||||
cosmetic: false,
|
||||
variant_of: "0".to_string(),
|
||||
ignore_in_weapon_list: true,
|
||||
}.as_transmissible()),
|
||||
].into(),
|
||||
}));
|
||||
Ok(params.into())
|
||||
|
||||
Reference in New Issue
Block a user