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.
Namespaces | Functions
markethelpers.h File Reference
#include <entt/entt.hpp>
#include "common/components/resource.h"
#include "common/universe.h"

Go to the source code of this file.

Namespaces

namespace  cqsp
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 
namespace  cqsp::common
 
namespace  cqsp::common::systems
 
namespace  cqsp::common::systems::economy
 

Functions

entt::entity cqsp::common::systems::economy::CreateMarket (Universe &universe)
 Creates a market two instance. More...
 
void cqsp::common::systems::economy::CreateMarket (Universe &universe, entt::entity market)
 
bool cqsp::common::systems::economy::PurchaseGood (Universe &universe, entt::entity agent, const components::ResourceLedger &purchase)
 Note: This will only buy the maximum resources that are in the market. If there aren't enough resources on the market, then we buy all the remaining resources on the market. You'll have to calculate how much you want later on More...
 
bool cqsp::common::systems::economy::SellGood (Universe &universe, entt::entity agent, const components::ResourceLedger &selling)
 
void cqsp::common::systems::economy::AddParticipant (cqsp::common::Universe &universe, entt::entity market, entt::entity entity)
 
double cqsp::common::systems::economy::GetCost (cqsp::common::Universe &universe, entt::entity market, const components::ResourceLedger &ledger)