Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Functions
cqsp::common::systems::resource Namespace Reference

Functions

bool TransferResources (entt::registry &registry, entt::entity from, entt::entity to, entt::entity good, double amount)
 Transfers resources from the first entity to the second More...
 

Function Documentation

◆ TransferResources()

bool cqsp::common::systems::resource::TransferResources ( entt::registry &  registry,
entt::entity  from,
entt::entity  to,
entt::entity  good,
double  amount 
)

Transfers resources from the first entity to the second

Parameters
registryRegistry to transfer
fromNeeds to be a resource stockpile
toNeeds to be a resource stockpile
goodgood to transfer
amountamount of resources to transfer
Returns
If transfering resources failed.