refactor AI system
This commit is contained in:
14
src/lib/ecs/component/SalvageScrapBehavior.h
Normal file
14
src/lib/ecs/component/SalvageScrapBehavior.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <QVector2D>
|
||||
|
||||
// Collect-scrap behavior (one half of the old SalvageBehaviorComponent). The
|
||||
// evaluator finds the nearest scrap and sets scrapTarget when cargo is not full.
|
||||
struct SalvageScrapBehavior
|
||||
{
|
||||
std::optional<QVector2D> scrapTarget;
|
||||
float maxCollectionRange_tiles = 0.0f;
|
||||
float score = 0.0f;
|
||||
};
|
||||
Reference in New Issue
Block a user