Skip to content

Commit 72aab9f

Browse files
committed
Track instances of the global singletons
Also remove description support as the new dump engine doesn't support it anymore :( And correct the spelling of lua_server_declaration, that was an oof
1 parent f344406 commit 72aab9f

File tree

5 files changed

+50
-70
lines changed

5 files changed

+50
-70
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
panorama/.vscode/
22
Thumbs.db
33
.idea/
4+
5+
_site/
6+
.sass-cache/
7+
Gemfile.lock

_data/lua_server.json

+38-19
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,8 @@
13251325
"description": "( int ListnerID ) - Unregister a specific listener",
13261326
"return": "void"
13271327
}
1328-
}
1328+
},
1329+
"instance": "CustomGameEventManager"
13291330
},
13301331
"CCustomNetTableManager": {
13311332
"functions": {
@@ -1346,7 +1347,8 @@
13461347
"description": "( string TableName, string KeyName, script_table Value )",
13471348
"return": "bool"
13481349
}
1349-
}
1350+
},
1351+
"instance": "CustomNetTables"
13501352
},
13511353
"CDOTABaseAbility": {
13521354
"extends": "CBaseEntity",
@@ -2933,7 +2935,8 @@
29332935
"description": "Get the hero unit name given the hero ID.",
29342936
"return": "cstring"
29352937
}
2936-
}
2938+
},
2939+
"instance": "DOTAGameManager"
29372940
},
29382941
"CDOTAGamerules": {
29392942
"functions": {
@@ -3502,7 +3505,8 @@
35023505
"description": "Get the current Gamerules state",
35033506
"return": "int"
35043507
}
3505-
}
3508+
},
3509+
"instance": "GameRules"
35063510
},
35073511
"CDOTAPlayer": {
35083512
"extends": "CBaseAnimating",
@@ -3733,7 +3737,8 @@
37333737
"description": "Upgrade a specific ability for the local hero",
37343738
"return": "void"
37353739
}
3736-
}
3740+
},
3741+
"instance": "Tutorial"
37373742
},
37383743
"CDOTAVoteSystem": {
37393744
"functions": {
@@ -3744,7 +3749,8 @@
37443749
"description": "Starts a vote, based upon a table of parameters",
37453750
"return": "void"
37463751
}
3747-
}
3752+
},
3753+
"instance": "VoteSystem"
37483754
},
37493755
"CDOTA_Ability_Animation_Attack": {
37503756
"extends": "CDOTABaseAbility",
@@ -6486,7 +6492,8 @@
64866492
"description": "Set the XP gained per level on this creature.",
64876493
"return": "void"
64886494
}
6489-
}
6495+
},
6496+
"instance": "spawnedUnit"
64906497
},
64916498
"CDOTA_BaseNPC_Hero": {
64926499
"extends": "CDOTA_BaseNPC",
@@ -7344,7 +7351,8 @@
73447351
"description": "Toggle the visibility of an existing custom hud element ( int PlayerID /*-1 means everyone*/, string ElementID, bool Visible )",
73457352
"return": "void"
73467353
}
7347-
}
7354+
},
7355+
"instance": "CustomUI"
73487356
},
73497357
"CDOTA_Item": {
73507358
"extends": "CDOTABaseAbility",
@@ -9658,7 +9666,8 @@
96589666
],
96599667
"return": "int"
96609668
}
9661-
}
9669+
},
9670+
"instance": "PlayerResource"
96629671
},
96639672
"CDOTA_ShopTrigger": {
96649673
"extends": "CBaseTrigger",
@@ -10178,7 +10187,8 @@
1017810187
"description": "Draws a arrow associated with a specific yaw. Specify endpoints in world space.",
1017910188
"return": "void"
1018010189
}
10181-
}
10190+
},
10191+
"instance": "debugoverlay"
1018210192
},
1018310193
"CDotaQuest": {
1018410194
"extends": "CBaseEntity",
@@ -10453,7 +10463,8 @@
1045310463
"description": "Continue an iteration over the list of entities, providing reference to a previously found entity",
1045410464
"return": "handle"
1045510465
}
10456-
}
10466+
},
10467+
"instance": "Entities"
1045710468
},
1045810469
"CEntityInstance": {
1045910470
"functions": {
@@ -10575,7 +10586,8 @@
1057510586
}
1057610587
},
1057710588
"CEntityScriptFramework": {
10578-
"functions": {}
10589+
"functions": {},
10590+
"instance": "NativeFunctions"
1057910591
},
1058010592
"CEnvEntityMaker": {
1058110593
"extends": "CBaseEntity",
@@ -11192,7 +11204,8 @@
1119211204
"description": "Returns the number of heroes in the world",
1119311205
"return": "int"
1119411206
}
11195-
}
11207+
},
11208+
"instance": "HeroList"
1119611209
},
1119711210
"CScriptKeyValues": {
1119811211
"functions": {
@@ -11343,7 +11356,8 @@
1134311356
"description": "int nfxindex, bool bCheckFoW",
1134411357
"return": "bool"
1134511358
}
11346-
}
11359+
},
11360+
"instance": "ParticleManager"
1134711361
},
1134811362
"CScriptPrecacheContext": {
1134911363
"functions": {
@@ -11693,7 +11707,8 @@
1169311707
"description": "SetStr(name, val) : sets the value of the convar to the string.",
1169411708
"return": "void"
1169511709
}
11696-
}
11710+
},
11711+
"instance": "Convars"
1169711712
},
1169811713
"Global": {
1169911714
"functions": {
@@ -13380,7 +13395,8 @@
1338013395
"description": "CommandLineStr(name) : returns the command line param as a string.",
1338113396
"return": "variant"
1338213397
}
13383-
}
13398+
},
13399+
"instance": "GlobalSys"
1338413400
},
1338513401
"GridNav": {
1338613402
"functions": {
@@ -13474,7 +13490,8 @@
1347413490
"description": "Get the Y index of a given world Y position",
1347513491
"return": "int"
1347613492
}
13477-
}
13493+
},
13494+
"instance": "GridNav"
1347813495
},
1347913496
"ProjectileManager": {
1348013497
"functions": {
@@ -13544,7 +13561,8 @@
1354413561
"description": "Update velocity",
1354513562
"return": "void"
1354613563
}
13547-
}
13564+
},
13565+
"instance": "ProjectileManager"
1354813566
},
1354913567
"SteamInfo": {
1355013568
"functions": {
@@ -13553,6 +13571,7 @@
1355313571
"description": "Is the script connected to the public Steam universe",
1355413572
"return": "bool"
1355513573
}
13556-
}
13574+
},
13575+
"instance": "SteamInfo"
1355713576
}
1355813577
}

lua_server.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ permalink: /lua_server/
1010
{% for server_class in site.data.lua_server %}
1111
## {{ server_class[0] }}
1212
{% if server_class[1] contains "extends" %}*extends **{{server_class[1].extends}}*** {% endif %}
13-
14-
#### {{server_class[1].description}}
13+
1514
{% for function in server_class[1].functions %}
1615
* {{function[0]}}(
1716
{% if function[1] contains "args" %}{%for arg in function[1].args %}{% if function[1] contains "arg_names" %}*{{arg}}* {{function[1].arg_names[forloop.index0]}}{% else %}{{arg}}{% endif %}{% if forloop.last != true %}, {% endif %}{% endfor %}{% endif %} ) : {{function[1].return | default: "void"}}

lua_server_delcaration.md renamed to lua_server_declaration.md

+3-21
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ permalink: /lua_server/declaration
66
{%- assign override = site.data.override_lua_server %}
77
{%- for server_class in site.data.lua_server %}
88
{%- if server_class[0] != "Global" %}
9-
/**
10-
* {{server_class[1].description}}
11-
*/
129
interface {{ server_class[0] }}{% if server_class[1] contains "extends" %} extends {{server_class[1].extends}}{% endif %} {
1310
{%- endif %}
1411
{% for function in server_class[1].functions %}
@@ -134,6 +131,9 @@ interface {{ server_class[0] }}{% if server_class[1] contains "extends" %} exten
134131
{%- endif %}) : {{return_type}};
135132
{% endfor %}
136133
}
134+
{%- if server_class[1] contains "instance" %}
135+
declare var {{ server_class[1].instance }} : {{ server_class[0] }};
136+
{%- endif %}
137137
{% endfor %}
138138

139139
/**
@@ -156,22 +156,4 @@ interface CDOTA_Modifier_Lua extends CDOTA_Buff {
156156
{%- endif %}
157157
{%- endfor %}
158158
}
159-
160-
declare var ParticleManager : CScriptParticleManager;
161-
162-
declare var HeroList : HeroList;
163-
164-
declare var GameRules : CDOTAGamerules;
165-
166-
declare var PlayerResource : CDOTA_PlayerResource;
167-
168-
declare var Entities : CEntities;
169-
170-
declare var ConVars : Convars;
171-
172-
declare var CustomGameEventManager : CCustomGameEventManager;
173-
174-
declare var CustomNetTables : CCustomNetTableManager;
175-
176-
declare var Tutorial : CDOTATutorial;
177159
```

lua_server_docs.md

+4-28
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ permalink: /lua_server/docs
77
{% for server_class in site.data.lua_server %}
88
{% if server_class[0] != "Global" %}
99
--- @class {{ server_class[0] }} {% if server_class[1] contains "extends" %} : {{server_class[1].extends}}{% endif %}
10-
--- {{server_class[1].description}}
1110
{{ server_class[0] }} = {}
1211
{% endif %}
12+
{%- if server_class[1] contains "instance" %}
13+
--- @type {{ server_class[0] }}
14+
{{ server_class[1].instance }} = {}
15+
{%- endif %}
1316
{% for function in server_class[1].functions %}
1417
{%- assign function_override = nil %}
1518
{%- if override contains server_class[0] %}
@@ -153,31 +156,4 @@ end
153156
{%- endfor %}
154157
{%- endif %}
155158
{%- endfor %}
156-
157-
--- @type CScriptParticleManager
158-
ParticleManager = {}
159-
160-
--- @type CScriptHeroList
161-
HeroList = {}
162-
163-
--- @type CDOTAGamerules
164-
GameRules = {}
165-
166-
--- @type CDOTA_PlayerResource
167-
PlayerResource = {}
168-
169-
--- @type CEntities
170-
Entities = {}
171-
172-
--- @type Convars
173-
ConVars = {}
174-
175-
--- @type CCustomGameEventManager
176-
CustomGameEventManager = {}
177-
178-
--- @type CCustomNetTableManager
179-
CustomNetTables = {}
180-
181-
--- @type CDOTATutorial
182-
Tutorial = {}
183159
```

0 commit comments

Comments
 (0)