GVAR(civiliansCount) as maximum number of civilians (temporary)
FUNC(getNearestCity) returning nearest city namespace
FUNC(getCityName)
FUNC(getCityByLocation) returning city namespace for given location
City initialization (create and initialize city namespace for all locations)
Civilians initialization (create and initialize civilians for all cities)
Add to common component:
GVAR(cities) storing all city configs for loaded world (not locations!)
FUNC(getLocationType)
FUNC(getAllMapCities) returning all cities (on the map) config entries
optional _searchRadius param to FUNC(nearestLocation)
FUNC(getRandomEmptyPosition)
As this component will be quite big and probably complicated, vehicle initialization and other civilian features will be included in future PRs to limit number of new functionalities per PR.
When merged this pull request will:
GVAR(civilians)
storing all initialized civiliansGVAR(cities)
storing all initialized city namespacesGVAR(citiesLocations)
namespace storing location - namespace connectionsGVAR(civiliansCount)
as maximum number of civilians (temporary)FUNC(getNearestCity)
returning nearest city namespaceFUNC(getCityName)
FUNC(getCityByLocation)
returning city namespace for given locationGVAR(cities)
storing all city configs for loaded world (not locations!)FUNC(getLocationType)
FUNC(getAllMapCities)
returning all cities (on the map) config entries_searchRadius
param toFUNC(nearestLocation)
FUNC(getRandomEmptyPosition)
As this component will be quite big and probably complicated, vehicle initialization and other civilian features will be included in future PRs to limit number of new functionalities per PR.