implement ship modules
This commit is contained in:
22
src/lib/sim/ShipLayout.h
Normal file
22
src/lib/sim/ShipLayout.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <QPoint>
|
||||
|
||||
#include "Rotation.h"
|
||||
|
||||
// A single module placed on a ship's layout grid (REQ-MOD-PLACEMENT).
|
||||
struct PlacedModule
|
||||
{
|
||||
std::string moduleId;
|
||||
QPoint position;
|
||||
Rotation rotation;
|
||||
};
|
||||
|
||||
// The complete module configuration for a shipyard's current ship (REQ-MOD-CONFIG).
|
||||
struct ShipLayoutConfig
|
||||
{
|
||||
std::vector<PlacedModule> placedModules;
|
||||
};
|
||||
Reference in New Issue
Block a user