15 lines
424 B
C++
15 lines
424 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "BuildingId.h"
|
|
|
|
// Deliver-scrap behavior (one half of the old SalvageBehaviorComponent). Scored
|
|
// high only when cargo is full. The evaluator assigns the nearest SalvageBay;
|
|
// SalvagerSystem performs the actual delivery.
|
|
struct DeliverScrapBehavior
|
|
{
|
|
std::optional<BuildingId> deliveryBay; // nullopt until a bay is assigned
|
|
float score = 0.0f;
|
|
};
|