Reading up on ECS, I've tried to implement a simple 'game', if you can call it that. Basic concepts :
You have planets(entity), they produce gold. (gold is a component inside planet)
Planets can build buildings on themselves(Buildings component)
A building(entity) has associated gold costs(Costs component)
But costs component has Gold in it(or it needs to anyway)
As to my question :
Am I close with my interpretation of ECS(Should components be inside other components?)
Are resources a valid Component? if not, where would it make sense to place them?
Edit for clarity :
ECS - Entity-Component-System.
My entities are empty hash tables of components.
My components are used inside systems for game logic, the Treasury entity has a Gold component and the IncomeSystem updates that component.
Other components (Buildable, Population, Moveable)