define ship roles via added modules and allow multiple weapons
This commit is contained in:
9
src/lib/ecs/component/ModuleOwnerComponent.h
Normal file
9
src/lib/ecs/component/ModuleOwnerComponent.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "entt/entity/entity.hpp"
|
||||
|
||||
// Links a capability module child entity back to its owner ship or station.
|
||||
struct ModuleOwnerComponent
|
||||
{
|
||||
entt::entity owner;
|
||||
};
|
||||
@@ -7,4 +7,5 @@
|
||||
struct RepairBehaviorComponent
|
||||
{
|
||||
std::optional<entt::entity> currentTarget;
|
||||
float maxRepairRange = 0.0f;
|
||||
};
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
struct SalvageBehaviorComponent
|
||||
{
|
||||
std::optional<QVector2D> scrapTarget;
|
||||
BuildingId deliveryBay; // kInvalidBuildingId until assigned at a salvage bay
|
||||
BuildingId deliveryBay; // kInvalidBuildingId until assigned at a salvage bay
|
||||
float maxCollectionRange = 0.0f;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user