1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Get campaign mode working, fix health/damage config

This commit is contained in:
NGnius (Graham)
2025-03-29 22:08:08 -04:00
parent 78941fb8ff
commit 610f54e236
23 changed files with 1601 additions and 56 deletions

View File

@@ -27,6 +27,7 @@ pub mod lobby;
pub mod error_codes;
pub mod game_mode;
pub mod score_multipliers;
pub mod campaign;
pub(self) fn encode_7_bit_i32(mut src: i32) -> Vec<u8> {
if src == 0 { return vec![0] }
@@ -49,3 +50,7 @@ pub(self) fn write_str_for_binreader(s: &str, writer: &mut dyn std::io::Write) -
total_len += writer.write(s_bytes)?;
Ok(total_len)
}
pub(self) fn cube_id_to_str(id: u32) -> String {
hex::encode(id.to_be_bytes()).into()
}