@px-lsp/server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +334 -0
  3. package/THIRD-PARTY-NOTICES.md +83 -0
  4. package/data/ck3/dataTypes.json +2195 -0
  5. package/data/ck3/data_types/data_types_common.txt +2040 -0
  6. package/data/ck3/data_types/data_types_gui.txt +5264 -0
  7. package/data/ck3/data_types/data_types_internalclausewitzgui.txt +14843 -0
  8. package/data/ck3/data_types/data_types_script.txt +4251 -0
  9. package/data/ck3/data_types/data_types_uncategorized.txt +109984 -0
  10. package/data/ck3/freqs.json +1 -0
  11. package/data/ck3/guiSchema.json +6344 -0
  12. package/data/ck3/script_docs/effects.log +16059 -0
  13. package/data/ck3/script_docs/event_targets.log +2098 -0
  14. package/data/ck3/script_docs/modifiers.log +2228 -0
  15. package/data/ck3/script_docs/on_actions.log +5275 -0
  16. package/data/ck3/script_docs/triggers.log +11991 -0
  17. package/data/ck3/structures.json +9743 -0
  18. package/data/ck3/wikidocs/ATTRIBUTION.md +18 -0
  19. package/data/ck3/wikidocs/Data_types.md +2568 -0
  20. package/data/ck3/wikidocs/Effects_list.md +1176 -0
  21. package/data/ck3/wikidocs/Scopes_list.md +341 -0
  22. package/data/ck3/wikidocs/Triggers_list.md +1097 -0
  23. package/data/eu5/data_types/data_types_common.txt +2087 -0
  24. package/data/eu5/data_types/data_types_gui.txt +6732 -0
  25. package/data/eu5/data_types/data_types_internalclausewitzgui.txt +19276 -0
  26. package/data/eu5/data_types/data_types_script.txt +5688 -0
  27. package/data/eu5/data_types/data_types_uncategorized.txt +135569 -0
  28. package/data/vic3/data_types/data_types_common.txt +2021 -0
  29. package/data/vic3/data_types/data_types_gui.txt +5592 -0
  30. package/data/vic3/data_types/data_types_internalclausewitzgui.txt +17304 -0
  31. package/data/vic3/data_types/data_types_script.txt +2817 -0
  32. package/data/vic3/data_types/data_types_uncategorized.txt +84354 -0
  33. package/data/vic3/freqs.json +1 -0
  34. package/data/vic3/guiSchema.json +5578 -0
  35. package/data/vic3/script_docs/effects.log +38135 -0
  36. package/data/vic3/script_docs/event_targets.log +2028 -0
  37. package/data/vic3/script_docs/modifiers.log +18954 -0
  38. package/data/vic3/script_docs/on_actions.log +1561 -0
  39. package/data/vic3/script_docs/triggers.log +15738 -0
  40. package/data/vic3/structures.json +10189 -0
  41. package/dist/server.js +63668 -0
  42. package/media/px-lsp.svg +12 -0
  43. package/package.json +50 -0
  44. package/src/clientMode.ts +60 -0
  45. package/src/coa/coa.ts +184 -0
  46. package/src/coa/coaParse.ts +267 -0
  47. package/src/context.ts +78 -0
  48. package/src/contextKeywords.ts +224 -0
  49. package/src/data/dataBindingMacros.ts +82 -0
  50. package/src/data/dataFnDocs.ts +152 -0
  51. package/src/data/dataFnUsage.ts +431 -0
  52. package/src/data/dataTypes.ts +279 -0
  53. package/src/data/defines.ts +123 -0
  54. package/src/data/docsParser.ts +453 -0
  55. package/src/data/keywordDocs.ts +98 -0
  56. package/src/data/modifierTemplates.ts +143 -0
  57. package/src/data/textFormatting.ts +165 -0
  58. package/src/data/wikiDocs.ts +187 -0
  59. package/src/dds/decoder.ts +1007 -0
  60. package/src/dds/encode.ts +235 -0
  61. package/src/dds/index.ts +58 -0
  62. package/src/dds/png.ts +96 -0
  63. package/src/dds/tga.ts +62 -0
  64. package/src/documents.ts +35 -0
  65. package/src/features/assetPaths.ts +169 -0
  66. package/src/features/codeActions.ts +148 -0
  67. package/src/features/colors.ts +244 -0
  68. package/src/features/completion.ts +961 -0
  69. package/src/features/datafunction.ts +729 -0
  70. package/src/features/definition.ts +84 -0
  71. package/src/features/diagnostics.ts +244 -0
  72. package/src/features/folding.ts +106 -0
  73. package/src/features/formatting.ts +60 -0
  74. package/src/features/guiLanguage.ts +366 -0
  75. package/src/features/guiNavigation.ts +140 -0
  76. package/src/features/guiTree.ts +97 -0
  77. package/src/features/hover.ts +817 -0
  78. package/src/features/hoverRender.ts +222 -0
  79. package/src/features/inlayHints.ts +147 -0
  80. package/src/features/locFormatting.ts +127 -0
  81. package/src/features/references.ts +70 -0
  82. package/src/features/rename.ts +135 -0
  83. package/src/features/scopeAt.ts +65 -0
  84. package/src/features/semanticTokens.ts +188 -0
  85. package/src/features/signatureHelp.ts +72 -0
  86. package/src/features/symbols.ts +241 -0
  87. package/src/features/textureHover.ts +143 -0
  88. package/src/features/workspaceSymbols.ts +69 -0
  89. package/src/games/active.ts +19 -0
  90. package/src/games/ck3/ambientScopes.ts +273 -0
  91. package/src/games/ck3/index.ts +38 -0
  92. package/src/games/ck3/meta.ts +28 -0
  93. package/src/games/ck3/modifierPlaceholders.ts +61 -0
  94. package/src/games/ck3/saveSchema.ts +134 -0
  95. package/src/games/ck3/scaffolds.ts +197 -0
  96. package/src/games/ck3/schema.ts +422 -0
  97. package/src/games/ck3/structures.ts +887 -0
  98. package/src/games/eu5/index.ts +75 -0
  99. package/src/games/eu5/meta.ts +44 -0
  100. package/src/games/eu5/scaffolds.ts +49 -0
  101. package/src/games/eu5/schema.generated.ts +1043 -0
  102. package/src/games/jomini/variables.ts +134 -0
  103. package/src/games/profile.ts +205 -0
  104. package/src/games/registry.ts +27 -0
  105. package/src/games/vic3/index.ts +52 -0
  106. package/src/games/vic3/meta.ts +55 -0
  107. package/src/games/vic3/saveSchema.ts +77 -0
  108. package/src/games/vic3/scaffolds.ts +135 -0
  109. package/src/games/vic3/schema.ts +650 -0
  110. package/src/games/vic3/structures.ts +33 -0
  111. package/src/gui/anchorSpec.ts +66 -0
  112. package/src/gui/declMarkers.ts +30 -0
  113. package/src/gui/fillGeometry.ts +101 -0
  114. package/src/gui/guiDefs.ts +386 -0
  115. package/src/gui/guiDependencies.ts +352 -0
  116. package/src/gui/guiLinks.ts +64 -0
  117. package/src/gui/layoutEngine.ts +1998 -0
  118. package/src/gui/layoutService.ts +221 -0
  119. package/src/gui/measuredMetrics.ts +21 -0
  120. package/src/gui/previewService.ts +89 -0
  121. package/src/gui/saveSchema.ts +220 -0
  122. package/src/gui/saveValues.ts +399 -0
  123. package/src/gui/saveZip.ts +60 -0
  124. package/src/gui/sourceEdit.ts +535 -0
  125. package/src/gui/sourceEditService.ts +439 -0
  126. package/src/gui/sourceModel.ts +603 -0
  127. package/src/gui/textResolve.ts +145 -0
  128. package/src/gui/textureInfo.ts +106 -0
  129. package/src/gui/vocabulary.ts +149 -0
  130. package/src/gui/widgetEdit.ts +52 -0
  131. package/src/gui/widgetInfo.ts +245 -0
  132. package/src/index/docComments.ts +103 -0
  133. package/src/index/extract.ts +252 -0
  134. package/src/index/indexer.ts +369 -0
  135. package/src/index/intern.ts +101 -0
  136. package/src/index/lazyRefs.ts +145 -0
  137. package/src/index/modOrigin.ts +69 -0
  138. package/src/index/references.ts +534 -0
  139. package/src/overview/dependencies.ts +240 -0
  140. package/src/overview/eventBanner.ts +95 -0
  141. package/src/overview/eventDetail.ts +482 -0
  142. package/src/overview/eventGraph.ts +617 -0
  143. package/src/overview/eventVocabulary.ts +214 -0
  144. package/src/overview/locCoverage.ts +138 -0
  145. package/src/overview/modOverview.ts +29 -0
  146. package/src/overview/overrides.ts +89 -0
  147. package/src/parseCache.ts +81 -0
  148. package/src/parser/cst.ts +257 -0
  149. package/src/parser/encoding.ts +106 -0
  150. package/src/parser/index.ts +7 -0
  151. package/src/parser/lexer.ts +245 -0
  152. package/src/parser/locParser.ts +276 -0
  153. package/src/parser/parser.ts +360 -0
  154. package/src/schema/freqs.ts +70 -0
  155. package/src/schema/loader.ts +113 -0
  156. package/src/schema/types.ts +142 -0
  157. package/src/scopes/inference.ts +478 -0
  158. package/src/scopes/model.ts +148 -0
  159. package/src/scopes/varTypes.ts +290 -0
  160. package/src/server.ts +1894 -0
  161. package/src/serverData.ts +98 -0
  162. package/src/structure.ts +56 -0
  163. package/src/wordAt.ts +49 -0
@@ -0,0 +1,341 @@
1
+ # Scopes list
2
+
3
+ `/Crusader Kings III/game/event_scopes.log` is a documentation provided by the game, which contains all existing scope types.
4
+
5
+ `/Crusader Kings III/game/event_targets.log` is a documentation provided by the game, which contains all existing event targets.
6
+
7
+ You can dump them locally on your computer by using the console command ``script_docs`` which will create them in `Documents/Paradox Interactive/Crusader Kings III/logs/`
8
+
9
+ The files need to be generated again after each major patch to get the latest version.
10
+
11
+ Both lists are transcribed here, but be aware that this information is outdated.
12
+ Some event targets have been deprecated, and some new scope types and event targets have been added since launch.
13
+
14
+
15
+ - [Culture](#culture)
16
+ - [Landed title](#landed-title)
17
+ - [Dynasty house](#dynasty-house)
18
+ - [Dynasty](#dynasty)
19
+ - [Secret](#secret)
20
+ - [Holy order](#holy-order)
21
+ - [Character](#character)
22
+ - [Army](#army)
23
+ - [Province](#province)
24
+ - [Faith](#faith)
25
+ - [Great holy war](#great-holy-war)
26
+ - [Combat side](#combat-side)
27
+ - [Scheme](#scheme)
28
+ - [Council task](#council-task)
29
+ - [Color](#color)
30
+ - [War](#war)
31
+ - [Casus belli](#casus-belli)
32
+ - [Combat](#combat)
33
+ - [Story cycle](#story-cycle)
34
+ - [Faction](#faction)
35
+ - [Activity](#activity)
36
+ - [Primitive scopes](#primitive-scopes)
37
+
38
+
39
+ ## Culture
40
+
41
+
42
+ | **Scope** | **Description** | **To scope** | **Version added** |
43
+ | --- | --- | --- | --- |
44
+ | culture_head | | character | 1.0 |
45
+ | culture_group | Usable in culture, landed title, character and province scopes. | culture group | 1.0 |
46
+
47
+
48
+ ## Landed title
49
+
50
+
51
+ | **Scope** | **Description** | **To scope** | **Version added** |
52
+ | --- | --- | --- | --- |
53
+ | title:*%title id%* | | landed title | 1.0 |
54
+ | barony_controller | Usable in landed title and province scopes. | character | 1.0 |
55
+ | county_controller | Usable in landed title and province scopes. | character | 1.0 |
56
+ | current_heir | | character | 1.0 |
57
+ | holder | | character | 1.0 |
58
+ | lessee | | character | 1.0 |
59
+ | previous_holder | | character | 1.0 |
60
+ | culture | Usable in landed title, character and province scopes. | culture | 1.0 |
61
+ | #lstScopesCultureGroupScope | | | |
62
+ | controlled_faith | | faith | 1.0 |
63
+ | faith | Usable in landed title, character, province and great holy war scopes. | faith | 1.0 |
64
+ | barony | Usable in landed title and province scopes. | landed title | 1.0 |
65
+ | county | Usable in landed title and province scopes. | landed title | 1.0 |
66
+ | de_facto_liege | | landed title | 1.0 |
67
+ | de_jure_liege | | landed title | 1.0 |
68
+ | duchy | Usable in landed title and province scopes. | landed title | 1.0 |
69
+ | empire | Usable in landed title and province scopes. | landed title | 1.0 |
70
+ | kingdom | Usable in landed title and province scopes. | landed title | 1.0 |
71
+ | lessee_title | | landed title | 1.0 |
72
+ | title_capital_county | | landed title | 1.0 |
73
+ | title_province | | province | 1.0 |
74
+ | religion | Usable in landed title and province scopes. | religion | 1.0 |
75
+
76
+
77
+ ## Dynasty house
78
+
79
+
80
+ | **Scope** | **Description** | **To scope** | **Version added** |
81
+ | --- | --- | --- | --- |
82
+ | house_head | | character | 1.0 |
83
+
84
+
85
+ ## Dynasty
86
+
87
+
88
+ | **Scope** | **Description** | **To scope** | **Version added** |
89
+ | --- | --- | --- | --- |
90
+ | dynasty | | character | 1.0 |
91
+ | dynast | dynasty head | character | 1.0 |
92
+
93
+
94
+ ## Secret
95
+
96
+
97
+ | **Scope** | **Description** | **To scope** | **Version added** |
98
+ | --- | --- | --- | --- |
99
+ | secret_owner | | character | 1.0 |
100
+ | secret_target | | character | 1.0 |
101
+
102
+
103
+ ## Holy order
104
+
105
+
106
+ | **Scope** | **Description** | **To scope** | **Version added** |
107
+ | --- | --- | --- | --- |
108
+ | holy_order_patron | | character | 1.0 |
109
+ | leader | | character | 1.0 |
110
+ | title | | landed title | 1.0 |
111
+
112
+
113
+ ## Character
114
+
115
+
116
+ | **Scope** | **Description** | **To scope** | **Version added** |
117
+ | --- | --- | --- | --- |
118
+ | commanding_army | | army | 1.0 |
119
+ | knight_army | | army | 1.0 |
120
+ | betrothed | | character | 1.0 |
121
+ | concubinist | | character | 1.0 |
122
+ | court_owner | | character | 1.0 |
123
+ | designated_heir | | character | 1.0 |
124
+ | employer | | character | 1.0 |
125
+ | father | | character | 1.0 |
126
+ | ghw_beneficiary | | character | 1.0 |
127
+ | host | | character | 1.0 |
128
+ | imprisoner | | character | 1.0 |
129
+ | killer | | character | 1.0 |
130
+ | liege | | character | 1.0 |
131
+ | liege_or_court_owner | | character | 1.0 |
132
+ | matchmaker | | character | 1.0 |
133
+ | mother | | character | 1.0 |
134
+ | player_heir | | character | 1.0 |
135
+ | pregnancy_assumed_father | | character | 1.0 |
136
+ | pregnancy_real_father | | character | 1.0 |
137
+ | primary_heir | | character | 1.0 |
138
+ | primary_partner | | character | 1.0 |
139
+ | primary_spouse | | character | 1.0 |
140
+ | prisoner | | character | 1.0 |
141
+ | real_father | | character | 1.0 |
142
+ | realm_priest | | character | 1.0 |
143
+ | top_liege | | character | 1.0 |
144
+ | council_task | | council task | 1.0 |
145
+ | #lstScopesCultureScope | | | |
146
+ | #lstScopesCultureGroupScope | | | |
147
+ | dynasty | | dynasty | 1.0 |
148
+ | house | | dynasty house | 1.0 |
149
+ | joined_faction | | faction | 1.0 |
150
+ | #lstScopesFaithScope | | | |
151
+ | capital_barony | | landed title | 1.0 |
152
+ | capital_county | | landed title | 1.0 |
153
+ | primary_title | | landed title | 1.0 |
154
+ | capital_province | | province | 1.0 |
155
+ | location | Usable in character, army and combat scopes. | province | 1.0 |
156
+ | religion | | religion | 1.0 |
157
+ | *** child of a parent? *** | | | |
158
+
159
+
160
+ ## Army
161
+
162
+
163
+ | **Scope** | **Description** | **To scope** | **Version added** |
164
+ | --- | --- | --- | --- |
165
+ | army_commander | | character | 1.0 |
166
+ | army_owner | | character | 1.0 |
167
+ | #lstScopesLocationScope | | | |
168
+
169
+
170
+ ## Province
171
+
172
+
173
+ | **Scope** | **Description** | **To scope** | **Version added** |
174
+ | --- | --- | --- | --- |
175
+ | #lstScopesBaronyControllerScope | | | |
176
+ | #lstScopesCountyControllerScope | | | |
177
+ | province_owner | | character | 1.0 |
178
+ | #lstScopesCultureScope | | | |
179
+ | #lstScopesCultureGroupScope | | | |
180
+ | #lstScopesFaithScope | | | |
181
+ | #lstScopesBaronyScope | | | |
182
+ | #lstScopesCountyScope | | | |
183
+ | #lstScopesDuchyScope | | | |
184
+ | #lstScopesEmpireScope | | | |
185
+ | #lstScopesKingdomScope | | | |
186
+ | #lstScopesReligionScope | | | |
187
+
188
+
189
+ ## Faith
190
+
191
+
192
+ | **Scope** | **Description** | **To scope** | **Version added** |
193
+ | --- | --- | --- | --- |
194
+ | religious_head | | character | 1.0 |
195
+ | great_holy_war | | great holy war | 1.0 |
196
+ | religious_head_title | | landed title | 1.0 |
197
+ | #lstScopesReligionScope | | | |
198
+
199
+
200
+ ## Great holy war
201
+
202
+
203
+ | **Scope** | **Description** | **To scope** | **Version added** |
204
+ | --- | --- | --- | --- |
205
+ | ghw_designated_winner | | character | 1.0 |
206
+ | ghw_target_character | | character | 1.0 |
207
+ | ghw_title_recipient | | character | 1.0 |
208
+ | ghw_war_declarer | | character | 1.0 |
209
+ | #lstScopesFaithScope | | | |
210
+ | ghw_target_title | | landed title | 1.0 |
211
+ | #lstScopesReligionScope | | | |
212
+ | ghw_war | | war | 1.0 |
213
+
214
+
215
+ ## Combat side
216
+
217
+
218
+ | **Scope** | **Description** | **To scope** | **Version added** |
219
+ | --- | --- | --- | --- |
220
+ | side_commander | | character | 1.0 |
221
+ | side_primary_participant | | character | 1.0 |
222
+ | combat | | combat | 1.0 |
223
+ | enemy_side | | combat side | 1.0 |
224
+
225
+
226
+ ## Scheme
227
+
228
+
229
+ | **Scope** | **Description** | **To scope** | **Version added** |
230
+ | --- | --- | --- | --- |
231
+ | scheme_defender | | character | 1.0 |
232
+ | scheme_owner | | character | 1.0 |
233
+ | scheme_target | | character | 1.0 |
234
+
235
+
236
+ ## Council task
237
+
238
+
239
+ | **Scope** | **Description** | **To scope** | **Version added** |
240
+ | --- | --- | --- | --- |
241
+ | councillor | | character | 1.0 |
242
+
243
+
244
+ ## Color
245
+
246
+ The scope "Color" is no longer supported since 1.5.
247
+
248
+ | **Scope** | **Description** | **To scope** | **Version added** |
249
+ | --- | --- | --- | --- |
250
+ | blue | | value | 1.0 |
251
+ | brightness | | value | 1.0 |
252
+ | green | | value | 1.0 |
253
+ | hue | | value | 1.0 |
254
+ | red | | value | 1.0 |
255
+ | saturation | | value | 1.0 |
256
+
257
+
258
+ ## War
259
+
260
+
261
+ | **Scope** | **Description** | **To scope** | **Version added** |
262
+ | --- | --- | --- | --- |
263
+ | casus_belli | | casus belli | 1.0 |
264
+ | claimant | Usable in war and casus belli scopes. | character | 1.0 |
265
+ | primary_attacker | Usable in war and casus belli scopes. | character | 1.0 |
266
+ | primary_defender | Usable in war and casus belli scopes. | character | 1.0 |
267
+
268
+
269
+ ## Casus belli
270
+
271
+
272
+ | **Scope** | **Description** | **To scope** | **Version added** |
273
+ | --- | --- | --- | --- |
274
+ | #lstScopesClaimantScope | | | |
275
+ | #lstScopesPrimaryAttackerScope | | | |
276
+ | #lstScopesPrimaryDefenderScope | | | |
277
+ | war | | war | 1.0 |
278
+
279
+
280
+ ## Combat
281
+
282
+
283
+ | **Scope** | **Description** | **To scope** | **Version added** |
284
+ | --- | --- | --- | --- |
285
+ | combat_attacker | | combat side | 1.0 |
286
+ | combat_defender | | combat side | 1.0 |
287
+ | #lstScopesLocationScope | | | |
288
+ | combat_war | | war | 1.0 |
289
+
290
+
291
+ ## Story cycle
292
+
293
+
294
+ | **Scope** | **Description** | **To scope** | **Version added** |
295
+ | --- | --- | --- | --- |
296
+ | story_owner | | character | 1.0 |
297
+
298
+
299
+ ## Faction
300
+
301
+
302
+ | **Scope** | **Description** | **To scope** | **Version added** |
303
+ | --- | --- | --- | --- |
304
+ | faction_leader | | character | 1.0 |
305
+ | faction_target | | character | 1.0 |
306
+ | special_character | | character | 1.0 |
307
+ | special_title | | landed title | 1.0 |
308
+ | faction_war | | war | 1.0 |
309
+
310
+
311
+ ## Activity
312
+
313
+
314
+ | **Scope** | **Description** | **To scope** | **Version added** |
315
+ | --- | --- | --- | --- |
316
+ | activity_owner | | character | 1.0 |
317
+ | activity_province | | province | 1.0 |
318
+
319
+
320
+ ## Primitive scopes
321
+
322
+ These scope types by default have no direct scope links out of them, though they can chain into script values.
323
+
324
+
325
+ | **Scope** | **Example** |
326
+ | --- | --- |
327
+ | Number | -1.0, 42, 69, some_script_value |
328
+ | Bool | yes/no |
329
+ | Flags | flag:some_flag |
330
+
331
+
332
+ **Note: If you give a number more than five decimals, it fails** and the script engine reads the whole number as 0.
333
+
334
+ Technical information: the Number type (also called Value) is a signed 64 bit fixed point number with 5 digits after the decimal point. This means it can hold numbers from -92 233 720 368 547.75808 to 92 233 720 368 547.75807 (so about 100 trillion). However, the GUI display of these numbers is limited to values from -2 147 483 648.99999 to 2 147 483 647.99999 (so about 2 billion). In addition, by default the GUI will only print 2 digits after the decimal point. You can change this in ``common/modifier_definition_formats``.
335
+
336
+
337
+ Category:Modding
338
+
339
+ ---
340
+
341
+ *Source: https://ck3.paradoxwikis.com/Scopes_list*