Browse Source

use u32 for rawmonsterdata fields

pbs
jake 5 years ago
parent
commit
03452fef87
  1. 20
      src/ship/map.rs

20
src/ship/map.rs

@ -25,11 +25,11 @@ struct RawMapEnemy {
xrot: u32, xrot: u32,
yrot: u32, yrot: u32,
zrot: u32, zrot: u32,
_field1: f32,
_field2: f32,
_field3: f32,
_field4: f32,
_field5: f32,
_field1: u32,
field2: u32,
_field3: u32,
_field4: u32,
_field5: u32,
skin: u32, skin: u32,
_field6: u32 _field6: u32
} }
@ -51,11 +51,11 @@ impl RawMapEnemy {
xrot: cursor.read_u32::<LittleEndian>()?, xrot: cursor.read_u32::<LittleEndian>()?,
yrot: cursor.read_u32::<LittleEndian>()?, yrot: cursor.read_u32::<LittleEndian>()?,
zrot: cursor.read_u32::<LittleEndian>()?, zrot: cursor.read_u32::<LittleEndian>()?,
_field1: cursor.read_f32::<LittleEndian>()?,
_field2: cursor.read_f32::<LittleEndian>()?,
_field3: cursor.read_f32::<LittleEndian>()?,
_field4: cursor.read_f32::<LittleEndian>()?,
_field5: cursor.read_f32::<LittleEndian>()?,
_field1: cursor.read_u32::<LittleEndian>()?,
field2: cursor.read_u32::<LittleEndian>()?,
_field3: cursor.read_u32::<LittleEndian>()?,
_field4: cursor.read_u32::<LittleEndian>()?,
_field5: cursor.read_u32::<LittleEndian>()?,
skin: cursor.read_u32::<LittleEndian>()?, skin: cursor.read_u32::<LittleEndian>()?,
_field6: cursor.read_u32::<LittleEndian>()?, _field6: cursor.read_u32::<LittleEndian>()?,
}) })

Loading…
Cancel
Save