cargo component refactoring
This commit is contained in:
11
src/lib/ecs/component/SalvagerComponent.h
Normal file
11
src/lib/ecs/component/SalvagerComponent.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
// Per-instance salvage collection emitter. Each placed salvage module owns one of
|
||||
// these and runs its own collection cycle on its own cooldown. The collected scrap
|
||||
// is stored in the owning ship's shared CargoComponent (REQ-SHP-SALVAGE), not here.
|
||||
struct SalvagerComponent
|
||||
{
|
||||
float collectionRange_tiles;
|
||||
int collectionIntervalTicks;
|
||||
int cooldownTicksRemaining;
|
||||
};
|
||||
Reference in New Issue
Block a user