AI Command Lab // Flight Simulator
302E: The Modular Chassis
Initial AI Output (Fragile)
// AI-Generated Code: The "Diamond Problem"
class Tank : Vehicle { ... }
class Plane : Vehicle { ... }
// Audit Fail: C# does not support multiple base classes.
// You cannot inherit from both Tank AND Plane.
class FlyingTank : ???
Initial AI Prompt
"You ask the AI: "Create a Flying Tank.""
Pilot Comm Link
Mission Objective: A skilled Navigator directs the AI to use Composition.
Optimized Protocol
// Corrected: Modular Composition
public class FlyingTank : MonoBehaviour {
// The Tank HAS tracks AND Wings. It doesn't "inherit" them.
[RequireComponent(typeof(TankTracks))]
[RequireComponent(typeof(JetWings))]
void Start() { ... }
}