How maptap/community-patch-dll works
This repository is the C++ gameplay core and supporting libraries for a Civilization-style strategy game. The principal user-facing workflow is issuing game actions that update world and player state, with AI making its own decisions during play; the source tree identifies these subsystems, but the supplied excerpts do not show their runtime orchestration. The graph therefore marks those relationships as unverified. The sampled evidence does show connections among the database, localization, world-builder map data, and Lua exposure layers.
Main entry points: CvGame.cpp Game runtime · CvPlayerAI.cpp Player AI · Database.h Database access · CvWorldBuilderMap.h World-builder maps
Components 21
Game state
- Game runtime
CvGameCoreDLL/CvGame.cpp - World map
CvGameCoreDLL/CvMap.cpp - Plot state
CvGameCoreDLL/CvPlot.cpp - City state
CvGameCoreDLL/CvCity.cpp - Unit state
CvGameCoreDLL/CvUnit.cpp - Player state
CvGameCoreDLL/CvPlayer.cpp
Game AI
- Player AI
CvGameCoreDLL/CvPlayerAI.cpp - Economic AI
CvGameCoreDLL/CvEconomicAI.cpp - Military AI
CvGameCoreDLL/CvMilitaryAI.cpp - Tactical AI
CvGameCoreDLL/CvTacticalAI.cpp - Diplomacy AI
CvGameCoreDLL/CvDiplomacyAI.cpp
Runtime integration
- DLL interfaces
CvGameCoreDLLUtil/include/CvDllInterfaces.h - Lua bindings
CvGameCoreDLL/Lua/CvLuaGame.cpp - World-builder maps
CvWorldBuilderMap/include/CvWorldBuilderMap.h
Data and utilities
- Database access
CvGameDatabase/include/Database.h - Localization
CvLocalization/include/CvLocalization.h - Game data cache
CvGameCoreDLLUtil/include/ICvDLLDatabaseUtility.h - INI settings API
FirePlace/include/FireWorks/FIGameIniParser.h - Lua type exposure
FirePlace/include/FireWorks/Flua/include/FLuaTypeExposure.h - Plot unit index
CvGameCoreDLL_Expansion2/CvPlotManager.h
Other components
- Player
Connections 16
- Player → Game runtime: issues actions
- Game runtime → Player state: updates state
- Game runtime → World map: updates world
- Game runtime → Player AI: runs decisions
- Player AI → Economic AI: delegates
- Player AI → Military AI: delegates
- Player AI → Diplomacy AI: delegates
- Military AI → Tactical AI: uses
- DLL interfaces → Game runtime: exposes interface
- Lua bindings → Game runtime: exposes actions
- World-builder maps → World map: stores map data
- Localization → Database access: initializes from
CvLocalization/include/CvLocalization.h - Database access → Game data cache: supplies cached data
- INI settings API → Database access: uses file definitions
FirePlace/include/FireWorks/FIGameIniParser.h - Plot unit index → Plot state: indexes units
- World-builder maps → Lua type exposure: uses type exposure