master
Mark 2023-12-28 17:06:33 -08:00
parent b283fadce9
commit ece82a8c1b
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 3 additions and 0 deletions

View File

@ -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>,

View File

@ -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),