Comments
parent
b283fadce9
commit
ece82a8c1b
|
@ -36,6 +36,7 @@ trait Build {
|
||||||
Self: Sized;
|
Self: Sized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Represents generic game content, not connected to any game objects.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Content {
|
pub struct Content {
|
||||||
pub systems: Vec<system::System>,
|
pub systems: Vec<system::System>,
|
||||||
|
|
|
@ -5,6 +5,7 @@ use crate::{
|
||||||
render::{SpriteTexture, SubSprite},
|
render::{SpriteTexture, SubSprite},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Represents a gun attached to a specific ship at a certain gunpoint.
|
||||||
pub struct ShipGun {
|
pub struct ShipGun {
|
||||||
pub kind: content::Gun,
|
pub kind: content::Gun,
|
||||||
pub cooldown: f32,
|
pub cooldown: f32,
|
||||||
|
@ -21,6 +22,7 @@ impl ShipGun {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Represents a specific outfit attached to a specific ship
|
||||||
pub enum ShipOutfit {
|
pub enum ShipOutfit {
|
||||||
Gun(ShipGun),
|
Gun(ShipGun),
|
||||||
Engine(content::Engine),
|
Engine(content::Engine),
|
||||||
|
|
Loading…
Reference in New Issue