cargo component refactoring
This commit is contained in:
10
src/lib/ecs/component/CargoComponent.h
Normal file
10
src/lib/ecs/component/CargoComponent.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
// Single shared salvage cargo pool for a ship (REQ-MOD-CARGO-CAPACITY). Attached
|
||||
// to a ship at spawn only when its cargo capacity stat is greater than 0. All of
|
||||
// the ship's salvage modules deposit into this one pool; delivery draws from it.
|
||||
struct CargoComponent
|
||||
{
|
||||
int maxCapacity;
|
||||
int current;
|
||||
};
|
||||
Reference in New Issue
Block a user