From ece82a8c1b0d86e3caede0f5314999d77718012e Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 28 Dec 2023 17:06:33 -0800 Subject: [PATCH] Comments --- src/content/mod.rs | 1 + src/game/ship/outfits.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/content/mod.rs b/src/content/mod.rs index 910d927..34305f1 100644 --- a/src/content/mod.rs +++ b/src/content/mod.rs @@ -36,6 +36,7 @@ trait Build { Self: Sized; } +/// Represents generic game content, not connected to any game objects. #[derive(Debug)] pub struct Content { pub systems: Vec, diff --git a/src/game/ship/outfits.rs b/src/game/ship/outfits.rs index 9c9e661..56dbe33 100644 --- a/src/game/ship/outfits.rs +++ b/src/game/ship/outfits.rs @@ -5,6 +5,7 @@ use crate::{ render::{SpriteTexture, SubSprite}, }; +/// Represents a gun attached to a specific ship at a certain gunpoint. pub struct ShipGun { pub kind: content::Gun, pub cooldown: f32, @@ -21,6 +22,7 @@ impl ShipGun { } } +/// Represents a specific outfit attached to a specific ship pub enum ShipOutfit { Gun(ShipGun), Engine(content::Engine),