refactor AI system
This commit is contained in:
12
src/lib/ecs/component/DeliverScrapBehavior.h
Normal file
12
src/lib/ecs/component/DeliverScrapBehavior.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#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
|
||||
{
|
||||
BuildingId deliveryBay = kInvalidBuildingId;
|
||||
float score = 0.0f;
|
||||
};
|
||||
Reference in New Issue
Block a user