Browse Source

pub ItemDrop

pbs
jake 5 years ago
parent
commit
160fc7f10b
  1. 18
      src/ship/drops/mod.rs

18
src/ship/drops/mod.rs

@ -1,3 +1,9 @@
// TODO: there is some structure duplication that occurs here:
// the rare and box tables instantiate their own copies of the
// generic drop tables as they need them to apply their modifiers
// to their drops
mod drop_table; mod drop_table;
mod rare_drop_table; mod rare_drop_table;
mod generic_weapon; mod generic_weapon;
@ -78,16 +84,18 @@ pub enum ItemDropType {
Shield(shield::Shield), Shield(shield::Shield),
Unit(unit::Unit), Unit(unit::Unit),
Tool(tool::Tool), Tool(tool::Tool),
//Tools(Vec<tool::Tool>),
TechniqueDisk(tech::TechniqueDisk), TechniqueDisk(tech::TechniqueDisk),
Mag(mag::Mag), Mag(mag::Mag),
Meseta(u32), Meseta(u32),
} }
struct ItemDrop {
x: f32,
y: f32,
z: f32,
item: ItemDropType,
pub struct ItemDrop {
pub map_area: MapArea,
pub x: f32,
pub y: f32,
pub z: f32,
pub item: ItemDropType,
} }
impl ItemDrop { impl ItemDrop {

Loading…
Cancel
Save