Browse Source

set actual ship name

pull/3/head
jake 5 years ago
parent
commit
93d98a3517
  1. 4
      src/packet/ship.rs

4
src/packet/ship.rs

@ -60,13 +60,13 @@ pub struct ShipBlockList {
}
impl ShipBlockList {
pub fn new(num_blocks: usize) -> ShipBlockList {
pub fn new(shipname: &str, num_blocks: usize) -> ShipBlockList {
ShipBlockList {
shipblock: BlockEntry {
menu: BLOCK_MENU_ID,
item: 0,
flags: 0,
name: utf8_to_utf16_array!("Shipname", 0x11)
name: utf8_to_utf16_array!(shipname, 0x11)
},
blocks: (0..num_blocks).map(|i| BlockEntry {
menu: BLOCK_MENU_ID,

Loading…
Cancel
Save