Home › Enums › PlayerComponentTypes

Available out of the box. Usable from Lua in the unmodified game.

PlayerComponentTypes

Lua constant table PlayerComponentTypes. Engine enum: GameCore::Player::ComponentID::Type.

The table name and the Lua key column come from the Civilization VI Modding Companion (ChimpanG, expanded and maintained by WildW). The engine names and values come from the game library's debug info. Every member the Companion lists has the same value in the engine enum, which is how the two were matched.

5 of 93 engine members are listed by the Companion. The others exist in the engine, but we do not know whether Lua exposes them, so use the Lua key column as the safe set.

Lua key Engine name Value
UNDEFINED UNDEFINED 0
UNIT UNIT 1
CITY CITY 2
DISTRICT DISTRICT 3
not listed GAME 4
not listed GAME_CULTURE 5
not listed GAME_DIPLOMACY 6
not listed GAME_GREATPEOPLE 7
not listed GAME_QUESTMANAGER 8
not listed GAME_RELIGION 9
not listed GAME_STATS 10
not listed GAME_TRADEMANAGER 11
not listed GAME_TRADEGRAPH 12
not listed GAME_TRADEEDGE 13
not listed GAME_GOSSIP 14
not listed GAME_HISTORYMANAGER 15
not listed MAP_INSTANCE 16
not listed OBJECTPAIRING_MANAGER 17
not listed PLAYER 18
not listed PLAYER_BONUSES 19
not listed PLAYER_ERAS 20
not listed PLAYER_CITIES 21
not listed PLAYER_CITYNAMEMANAGER 22
not listed PLAYER_CULTURE 23
not listed PLAYER_DIPLOMACY 24
not listed PLAYER_DISTRICTS 25
not listed PLAYER_ESPIONAGE 26
not listed PLAYER_GOODYHUT 27
not listed PLAYER_GPPOINTS 28
not listed PLAYER_INFLUENCE 29
not listed PLAYER_QUESTS 30
not listed PLAYER_RELIGION 31
not listed PLAYER_RESOURCES 32
not listed PLAYER_STATS 33
not listed PLAYER_TECHS 34
not listed PLAYER_TRADE 35
not listed PLAYER_TREASURY 36
not listed PLAYER_VISIBILITY 37
not listed PLAYER_NOTIFICATION 38
not listed PLAYER_NOTIFICATION_LIST 39
not listed PLAYER_UNITS 40
not listed PLAYER_WMDS 41
not listed PLAYER_IMPROVEMENTS 42
not listed PLAYER_CULTURALIDENTITY 43
FORMATION FORMATION 44
not listed DIPLOMACY 45
not listed AI_GLOBALAI 46
not listed AI_CULTURE 47
not listed AI_DIPLOMACY 48
not listed AI_ECONOMIC 49
not listed AI_ESPIONAGE 50
not listed AI_FLAVORMANAGER 51
not listed AI_GOVERNORS 52
not listed AI_GRANDSTRATEGIC 53
not listed AI_HOMELAND 54
not listed AI_MILITARY 55
not listed AI_OPERATION 56
not listed AI_RELIGION 57
not listed AI_RESEARCH 58
not listed AI_TACTICAL 59
not listed AI_TARGETS 60
not listed AI_UNIT_PLANNING_MANAGER 61
not listed AI_BEHAVIORTREE_MANAGER 62
not listed AI_BEHAVIORTREE 63
not listed AI_CONTROL_MANAGER 64
not listed AI_INFLUENCEMAP 65
not listed AI_CONTRACT 66
not listed AI_CITYBUILD 67
not listed BARBARIAN_MANAGER 68
not listed MODIFIER_DYNAMIC 69
not listed IMPROVEMENT 70
not listed GAME_NAMEMANAGER 71
not listed GAME_NATIONALPARKS 72
not listed PLAYER_MANAGER 73
not listed GAME_CONFIGURATION 74
not listed MAP_CONFIGURATION 75
not listed PLAYER_CONFIGURATION 76
not listed GOVERNOR 77
not listed MAP_PLOT 78
not listed GAME_CLIMATE 79
not listed GAME_RANDOM_EVENTS 80
not listed GAME_TECHS 81
not listed GAME_STORM 82
not listed GAME_DROUGHT 83
not listed PLAYER_CONGRESS 84
not listed WORLD_CONGRESS 85
not listed GAME_ECONOMIC 86
not listed GAME_FIRE 87
not listed GAME_ONEOFF_EVENT 88
not listed GAME_SECRETSOCIETIESMANAGER 89
not listed GAME_HEROESMANAGER 90
not listed PLAYER_HEROES 91
not listed BARBARIAN_CLANSMANAGER 92