|
@ -119,14 +119,13 @@ impl RoomMode { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
|
|
pub struct RoomState {
|
|
|
pub struct RoomState {
|
|
|
pub mode: RoomMode,
|
|
|
pub mode: RoomMode,
|
|
|
pub name: String,
|
|
|
pub name: String,
|
|
|
pub password: [u16; 16],
|
|
|
pub password: [u16; 16],
|
|
|
//pub maps: [u32; 0x20],
|
|
|
//pub maps: [u32; 0x20],
|
|
|
pub maps: Maps,
|
|
|
pub maps: Maps,
|
|
|
// drop_table
|
|
|
|
|
|
|
|
|
pub drop_table: Box<DropTable<rand_chacha::ChaCha20Rng>>,
|
|
|
// items on ground
|
|
|
// items on ground
|
|
|
// enemy info
|
|
|
// enemy info
|
|
|
}
|
|
|
}
|
|
@ -201,8 +200,8 @@ impl RoomState { |
|
|
mode: room_mode,
|
|
|
mode: room_mode,
|
|
|
name: String::from_utf16_lossy(&create_room.name).trim_matches(char::from(0)).into(),
|
|
|
name: String::from_utf16_lossy(&create_room.name).trim_matches(char::from(0)).into(),
|
|
|
password: create_room.password,
|
|
|
password: create_room.password,
|
|
|
//maps: [0; 0x20],
|
|
|
|
|
|
maps: Maps::new(room_mode.episode()),
|
|
|
maps: Maps::new(room_mode.episode()),
|
|
|
|
|
|
drop_table: Box::new(DropTable::new(room_mode.episode(), room_mode.difficulty(), section_id)),
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|