@tlua/gmod 1.0.3 → 1.0.5

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 (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
@@ -22,45 +22,30 @@ interface DuplicatorLib {
22
22
  * @source https://wiki.facepunch.com/gmod/duplicator.Allow
23
23
  */
24
24
  Allow(classname: string): void;
25
- }
26
-
27
- interface DuplicatorLib {
28
25
  /**
29
26
  * Calls every function registered with [duplicator.RegisterBoneModifier](https://wiki.facepunch.com/gmod/duplicator.RegisterBoneModifier) on each bone the ent has.
30
27
  * @realm server
31
28
  * @source https://wiki.facepunch.com/gmod/duplicator.ApplyBoneModifiers
32
29
  */
33
30
  ApplyBoneModifiers(ply: Player, ent: Entity): void;
34
- }
35
-
36
- interface DuplicatorLib {
37
31
  /**
38
32
  * Calls every function registered with [duplicator.RegisterEntityModifier](https://wiki.facepunch.com/gmod/duplicator.RegisterEntityModifier) on the entity.
39
33
  * @realm server
40
34
  * @source https://wiki.facepunch.com/gmod/duplicator.ApplyEntityModifiers
41
35
  */
42
36
  ApplyEntityModifiers(ply: Player, ent: Entity): void;
43
- }
44
-
45
- interface DuplicatorLib {
46
37
  /**
47
38
  * Clears/removes the chosen entity modifier from the entity.
48
39
  * @realm server
49
40
  * @source https://wiki.facepunch.com/gmod/duplicator.ClearEntityModifier
50
41
  */
51
42
  ClearEntityModifier(ent: Entity, key: any): void;
52
- }
53
-
54
- interface DuplicatorLib {
55
43
  /**
56
44
  * Copies the entity, and all of its constraints and entities, then returns them in a table.
57
45
  * @realm server
58
46
  * @source https://wiki.facepunch.com/gmod/duplicator.Copy
59
47
  */
60
48
  Copy(ent: Entity, tableToAdd?: table): table;
61
- }
62
-
63
- interface DuplicatorLib {
64
49
  /**
65
50
  * Returns a table with some entity data that can be used to create a new entity with [duplicator.CreateEntityFromTable](https://wiki.facepunch.com/gmod/duplicator.CreateEntityFromTable).
66
51
  *
@@ -68,18 +53,12 @@ interface DuplicatorLib {
68
53
  * @source https://wiki.facepunch.com/gmod/duplicator.CopyEntTable
69
54
  */
70
55
  CopyEntTable(ent: Entity): table;
71
- }
72
-
73
- interface DuplicatorLib {
74
56
  /**
75
57
  * Copies the passed table of entities to save for later.
76
58
  * @realm server
77
59
  * @source https://wiki.facepunch.com/gmod/duplicator.CopyEnts
78
60
  */
79
61
  CopyEnts(ents: table): table;
80
- }
81
-
82
- interface DuplicatorLib {
83
62
  /**
84
63
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
85
64
  * Creates a constraint from a saved/copied constraint table.
@@ -87,19 +66,12 @@ interface DuplicatorLib {
87
66
  * @source https://wiki.facepunch.com/gmod/duplicator.CreateConstraintFromTable
88
67
  */
89
68
  CreateConstraintFromTable(constraint: table, entityList: table): (Entity, Entity, Entity, Entity);
90
- }
91
-
92
- interface DuplicatorLib {
93
69
  /**
94
70
  * Creates an entity from duplication data.
95
71
  * @realm server
96
72
  * @source https://wiki.facepunch.com/gmod/duplicator.CreateEntityFromTable
97
73
  */
98
74
  CreateEntityFromTable(ply: Player, entTable: EntityCopyData): Entity;
99
- }
100
-
101
-
102
- interface DuplicatorLib {
103
75
  /**
104
76
  * Disallow this entity to be duplicated. Opposite of [duplicator.Allow](https://wiki.facepunch.com/gmod/duplicator.Allow).
105
77
  *
@@ -108,9 +80,6 @@ interface DuplicatorLib {
108
80
  * @source https://wiki.facepunch.com/gmod/duplicator.Disallow
109
81
  */
110
82
  Disallow(classname: string): void;
111
- }
112
-
113
- interface DuplicatorLib {
114
83
  /**
115
84
  * "Restores the bone's data."
116
85
  *
@@ -121,18 +90,12 @@ interface DuplicatorLib {
121
90
  * @source https://wiki.facepunch.com/gmod/duplicator.DoBoneManipulator
122
91
  */
123
92
  DoBoneManipulator(ent: Entity, bones: table): void;
124
- }
125
-
126
- interface DuplicatorLib {
127
93
  /**
128
94
  * Restores the flex data using [Entity:SetFlexWeight](https://wiki.facepunch.com/gmod/Entity:SetFlexWeight) and [Entity:SetFlexScale](https://wiki.facepunch.com/gmod/Entity:SetFlexScale).
129
95
  * @realm server
130
96
  * @source https://wiki.facepunch.com/gmod/duplicator.DoFlex
131
97
  */
132
98
  DoFlex(ent: Entity, flex: table, scale?: number): void;
133
- }
134
-
135
- interface DuplicatorLib {
136
99
  /**
137
100
  * "Applies generic every-day entity stuff for ent from table data."
138
101
  *
@@ -146,9 +109,6 @@ interface DuplicatorLib {
146
109
  * @source https://wiki.facepunch.com/gmod/duplicator.DoGeneric
147
110
  */
148
111
  DoGeneric(ent: Entity, data: table): void;
149
- }
150
-
151
- interface DuplicatorLib {
152
112
  /**
153
113
  * "Applies bone data, generically."
154
114
  *
@@ -159,9 +119,6 @@ interface DuplicatorLib {
159
119
  * @source https://wiki.facepunch.com/gmod/duplicator.DoGenericPhysics
160
120
  */
161
121
  DoGenericPhysics(ent: Entity, ply?: Player, data?: table): void;
162
- }
163
-
164
- interface DuplicatorLib {
165
122
  /**
166
123
  * Checks the given duplication table and tries to figure out any addons that might be required to correctly spawn the duplication. Currently this is limited to models and material overrides saved in the duplication.
167
124
  *
@@ -169,18 +126,12 @@ interface DuplicatorLib {
169
126
  * @source https://wiki.facepunch.com/gmod/duplicator.FigureOutRequiredAddons
170
127
  */
171
128
  FigureOutRequiredAddons(dupe: table): void;
172
- }
173
-
174
- interface DuplicatorLib {
175
129
  /**
176
130
  * Returns the entity class factory registered with [duplicator.RegisterEntityClass](https://wiki.facepunch.com/gmod/duplicator.RegisterEntityClass).
177
131
  * @realm shared
178
132
  * @source https://wiki.facepunch.com/gmod/duplicator.FindEntityClass
179
133
  */
180
134
  FindEntityClass(name: string): table;
181
- }
182
-
183
- interface DuplicatorLib {
184
135
  /**
185
136
  * "Generic function for duplicating stuff"
186
137
  *
@@ -191,9 +142,6 @@ interface DuplicatorLib {
191
142
  * @source https://wiki.facepunch.com/gmod/duplicator.GenericDuplicatorFunction
192
143
  */
193
144
  GenericDuplicatorFunction(ply: Player, data: table): Entity;
194
- }
195
-
196
- interface DuplicatorLib {
197
145
  /**
198
146
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
199
147
  * Fills entStorageTable with all of the entities in a group connected with constraints. Fills constraintStorageTable with all of the constraints constraining the group.
@@ -201,18 +149,12 @@ interface DuplicatorLib {
201
149
  * @source https://wiki.facepunch.com/gmod/duplicator.GetAllConstrainedEntitiesAndConstraints
202
150
  */
203
151
  GetAllConstrainedEntitiesAndConstraints(ent: Entity, entStorageTable: table, constraintStorageTable: table): (table, table);
204
- }
205
-
206
- interface DuplicatorLib {
207
152
  /**
208
153
  * Returns whether the entity can be duplicated or not.
209
154
  * @realm shared
210
155
  * @source https://wiki.facepunch.com/gmod/duplicator.IsAllowed
211
156
  */
212
157
  IsAllowed(classname: string): boolean;
213
- }
214
-
215
- interface DuplicatorLib {
216
158
  /**
217
159
  * "Given entity list and constraint list, create all entities and return their tables"
218
160
  *
@@ -224,9 +166,6 @@ interface DuplicatorLib {
224
166
  * @source https://wiki.facepunch.com/gmod/duplicator.Paste
225
167
  */
226
168
  Paste(Player: Player, EntityList: table, ConstraintList: table): (table, table);
227
- }
228
-
229
- interface DuplicatorLib {
230
169
  /**
231
170
  * Registers a function to be called on each of an entity's bones when [duplicator.ApplyBoneModifiers](https://wiki.facepunch.com/gmod/duplicator.ApplyBoneModifiers) is called.
232
171
  *
@@ -237,18 +176,12 @@ interface DuplicatorLib {
237
176
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterBoneModifier
238
177
  */
239
178
  RegisterBoneModifier(key: any, boneModifier: (ply: Player, ent: Entity, boneID: number, bone: PhysObj, data: table) => void): void;
240
- }
241
-
242
- interface DuplicatorLib {
243
179
  /**
244
180
  * Register a function used for creating a duplicator-supported constraint.
245
181
  * @realm shared
246
182
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterConstraint
247
183
  */
248
184
  RegisterConstraint(name: string, callback: function, ...: any): void;
249
- }
250
-
251
- interface DuplicatorLib {
252
185
  /**
253
186
  * This allows you to specify a specific function to be run when your SENT is pasted with the duplicator, instead of relying on the generic automatic functions.
254
187
  *
@@ -259,9 +192,6 @@ interface DuplicatorLib {
259
192
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterEntityClass
260
193
  */
261
194
  RegisterEntityClass(name: string, _function: (ply: Player, ...: any) => Entity, ...: any): void;
262
- }
263
-
264
- interface DuplicatorLib {
265
195
  /**
266
196
  * This allows you to register tweaks to entities. For instance, if you were making an "unbreakable" addon, you would use this to enable saving the "unbreakable" state of entities between duplications.
267
197
  *
@@ -273,9 +203,6 @@ interface DuplicatorLib {
273
203
  * @source https://wiki.facepunch.com/gmod/duplicator.RegisterEntityModifier
274
204
  */
275
205
  RegisterEntityModifier(name: string, func: (ply: Player, ent: Entity, data: table) => void): void;
276
- }
277
-
278
- interface DuplicatorLib {
279
206
  /**
280
207
  * Help to remove certain map created entities before creating the saved entities
281
208
  * This is obviously so we don't get duplicate props everywhere.
@@ -285,9 +212,6 @@ interface DuplicatorLib {
285
212
  * @source https://wiki.facepunch.com/gmod/duplicator.RemoveMapCreatedEntities
286
213
  */
287
214
  RemoveMapCreatedEntities(): void;
288
- }
289
-
290
- interface DuplicatorLib {
291
215
  /**
292
216
  * "When a copy is copied it will be translated according to these.
293
217
  * If you set them - make sure to set them back to 0 0 0!"
@@ -296,9 +220,6 @@ interface DuplicatorLib {
296
220
  * @source https://wiki.facepunch.com/gmod/duplicator.SetLocalAng
297
221
  */
298
222
  SetLocalAng(v: Angle): void;
299
- }
300
-
301
- interface DuplicatorLib {
302
223
  /**
303
224
  * "When a copy is copied it will be translated according to these.
304
225
  * If you set them - make sure to set them back to 0 0 0!"
@@ -307,27 +228,18 @@ interface DuplicatorLib {
307
228
  * @source https://wiki.facepunch.com/gmod/duplicator.SetLocalPos
308
229
  */
309
230
  SetLocalPos(v: Vector): void;
310
- }
311
-
312
- interface DuplicatorLib {
313
231
  /**
314
232
  * Stores bone mod data for a registered bone modification function.
315
233
  * @realm server
316
234
  * @source https://wiki.facepunch.com/gmod/duplicator.StoreBoneModifier
317
235
  */
318
236
  StoreBoneModifier(ent: Entity, boneID: number, key: any, data: table): void;
319
- }
320
-
321
- interface DuplicatorLib {
322
237
  /**
323
238
  * Stores an entity modifier into an entity for saving.
324
239
  * @realm server
325
240
  * @source https://wiki.facepunch.com/gmod/duplicator.StoreEntityModifier
326
241
  */
327
242
  StoreEntityModifier(entity: Entity, name: string, data: table): void;
328
- }
329
-
330
- interface DuplicatorLib {
331
243
  /**
332
244
  * Works out the AABB size of the duplication.
333
245
  * @realm server
@@ -336,3 +248,33 @@ interface DuplicatorLib {
336
248
  WorkoutSize(Ents: table): (Vector, Vector);
337
249
  }
338
250
 
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
@@ -5,9 +5,7 @@
5
5
  * @realm client
6
6
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider
7
7
  */
8
- interface DVerticalDivider extends DPanel {}
9
-
10
- interface DVerticalDivider {
8
+ interface DVerticalDivider extends DPanel {
11
9
  /**
12
10
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
13
11
  * Used internally to clamp the vertical divider to [DVerticalDivider:GetTopMin](https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopMin) and [DVerticalDivider:GetBottomMin](https://wiki.facepunch.com/gmod/DVerticalDivider:GetBottomMin).
@@ -15,45 +13,30 @@ interface DVerticalDivider {
15
13
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:DoConstraints
16
14
  */
17
15
  DoConstraints(self: DVerticalDivider): void;
18
- }
19
-
20
- interface DVerticalDivider {
21
16
  /**
22
17
  * Returns the bottom content panel of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
23
18
  * @realm client
24
19
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetBottom
25
20
  */
26
21
  GetBottom(self: DVerticalDivider): Panel;
27
- }
28
-
29
- interface DVerticalDivider {
30
22
  /**
31
23
  * Returns the minimum height of the bottom content panel.
32
24
  * @realm client
33
25
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetBottomMin
34
26
  */
35
27
  GetBottomMin(self: DVerticalDivider): number;
36
- }
37
-
38
- interface DVerticalDivider {
39
28
  /**
40
29
  * Returns the height of the divider bar between the top and bottom content panels of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
41
30
  * @realm client
42
31
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetDividerHeight
43
32
  */
44
33
  GetDividerHeight(self: DVerticalDivider): number;
45
- }
46
-
47
- interface DVerticalDivider {
48
34
  /**
49
35
  * Returns whether the divider is being dragged or not.
50
36
  * @realm client
51
37
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetDragging
52
38
  */
53
39
  GetDragging(self: DVerticalDivider): boolean;
54
- }
55
-
56
- interface DVerticalDivider {
57
40
  /**
58
41
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
59
42
  *
@@ -63,81 +46,54 @@ interface DVerticalDivider {
63
46
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetHoldPos
64
47
  */
65
48
  GetHoldPos(self: DVerticalDivider): number;
66
- }
67
-
68
- interface DVerticalDivider {
69
49
  /**
70
50
  * Returns the middle content panel of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
71
51
  * @realm client
72
52
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetMiddle
73
53
  */
74
54
  GetMiddle(self: DVerticalDivider): Panel;
75
- }
76
-
77
- interface DVerticalDivider {
78
55
  /**
79
56
  * Returns the top content panel of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
80
57
  * @realm client
81
58
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTop
82
59
  */
83
60
  GetTop(self: DVerticalDivider): Panel;
84
- }
85
-
86
- interface DVerticalDivider {
87
61
  /**
88
62
  * Returns the current height of the top content panel set by [DVerticalDivider:SetTopHeight](https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopHeight) or by the user.
89
63
  * @realm client
90
64
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopHeight
91
65
  */
92
66
  GetTopHeight(self: DVerticalDivider): number;
93
- }
94
-
95
- interface DVerticalDivider {
96
67
  /**
97
68
  * Returns the maximum height of the top content panel. See [DVerticalDivider:SetTopMax](https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopMax) for more information.
98
69
  * @realm client
99
70
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopMax
100
71
  */
101
72
  GetTopMax(self: DVerticalDivider): number;
102
- }
103
-
104
- interface DVerticalDivider {
105
73
  /**
106
74
  * Returns the minimum height of the top content panel.
107
75
  * @realm client
108
76
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:GetTopMin
109
77
  */
110
78
  GetTopMin(self: DVerticalDivider): number;
111
- }
112
-
113
- interface DVerticalDivider {
114
79
  /**
115
80
  * Sets the passed panel as the bottom content of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
116
81
  * @realm client
117
82
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetBottom
118
83
  */
119
84
  SetBottom(self: DVerticalDivider, pnl: Panel): void;
120
- }
121
-
122
- interface DVerticalDivider {
123
85
  /**
124
86
  * Sets the minimum height of the bottom content panel.
125
87
  * @realm client
126
88
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetBottomMin
127
89
  */
128
90
  SetBottomMin(self: DVerticalDivider, height: number): void;
129
- }
130
-
131
- interface DVerticalDivider {
132
91
  /**
133
92
  * Sets the height of the divider bar between the top and bottom content panels of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
134
93
  * @realm client
135
94
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetDividerHeight
136
95
  */
137
96
  SetDividerHeight(self: DVerticalDivider, height: number): void;
138
- }
139
-
140
- interface DVerticalDivider {
141
97
  /**
142
98
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
143
99
  *
@@ -147,9 +103,6 @@ interface DVerticalDivider {
147
103
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetDragging
148
104
  */
149
105
  SetDragging(self: DVerticalDivider, isDragging: boolean): void;
150
- }
151
-
152
- interface DVerticalDivider {
153
106
  /**
154
107
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
155
108
  *
@@ -159,27 +112,18 @@ interface DVerticalDivider {
159
112
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetHoldPos
160
113
  */
161
114
  SetHoldPos(self: DVerticalDivider, y: number): void;
162
- }
163
-
164
- interface DVerticalDivider {
165
115
  /**
166
116
  * Places the passed panel in between the top and bottom content panels of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
167
117
  * @realm client
168
118
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetMiddle
169
119
  */
170
120
  SetMiddle(self: DVerticalDivider, pnl: Panel): void;
171
- }
172
-
173
- interface DVerticalDivider {
174
121
  /**
175
122
  * Sets the passed panel as the top content of the [DVerticalDivider](https://wiki.facepunch.com/gmod/DVerticalDivider).
176
123
  * @realm client
177
124
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTop
178
125
  */
179
126
  SetTop(self: DVerticalDivider, pnl: Panel): void;
180
- }
181
-
182
- interface DVerticalDivider {
183
127
  /**
184
128
  * Sets the height of the top content panel.
185
129
  *
@@ -189,27 +133,18 @@ interface DVerticalDivider {
189
133
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopHeight
190
134
  */
191
135
  SetTopHeight(self: DVerticalDivider, height: number): void;
192
- }
193
-
194
- interface DVerticalDivider {
195
136
  /**
196
137
  * Sets the maximum height of the top content panel. This is ignored if the panel would exceed the minimum bottom content panel height set from [DVerticalDivider:SetBottomMin](https://wiki.facepunch.com/gmod/DVerticalDivider:SetBottomMin).
197
138
  * @realm client
198
139
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopMax
199
140
  */
200
141
  SetTopMax(self: DVerticalDivider, height: number): void;
201
- }
202
-
203
- interface DVerticalDivider {
204
142
  /**
205
143
  * Sets the minimum height of the top content panel.
206
144
  * @realm client
207
145
  * @source https://wiki.facepunch.com/gmod/DVerticalDivider:SetTopMin
208
146
  */
209
147
  SetTopMin(self: DVerticalDivider, height: number): void;
210
- }
211
-
212
- interface DVerticalDivider {
213
148
  /**
214
149
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
215
150
  *
@@ -221,3 +156,25 @@ interface DVerticalDivider {
221
156
  StartGrab(self: DVerticalDivider): void;
222
157
  }
223
158
 
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
@@ -8,63 +8,43 @@
8
8
  * @realm client
9
9
  * @source https://wiki.facepunch.com/gmod/DVScrollBar
10
10
  */
11
- interface DVScrollBar extends Panel {}
12
-
13
- interface DVScrollBar {
11
+ interface DVScrollBar extends Panel {
14
12
  /**
15
13
  * Adds specified amount of scroll in pixels.
16
14
  * @realm client and menu
17
15
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:AddScroll
18
16
  */
19
17
  AddScroll(self: DVScrollBar, add: number): boolean;
20
- }
21
-
22
- interface DVScrollBar {
23
18
  /**
24
19
  * Smoothly scrolls to given level.
25
20
  * @realm client and menu
26
21
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:AnimateTo
27
22
  */
28
23
  AnimateTo(self: DVScrollBar, scroll: number, length: number, delay?: number, ease?: number): void;
29
- }
30
-
31
- interface DVScrollBar {
32
24
  /**
33
25
  * Returns the scale of the scroll bar based on the difference in size between the visible "window" into the canvas that is being scrolled. Should be used after [DVScrollBar:SetUp](https://wiki.facepunch.com/gmod/DVScrollBar:SetUp).
34
26
  * @realm client and menu
35
27
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:BarScale
36
28
  */
37
29
  BarScale(self: DVScrollBar): number;
38
- }
39
-
40
- interface DVScrollBar {
41
30
  /**
42
31
  * Returns whether or not the manual up/down scroll buttons are visible or not. Set by [DVScrollBar:SetHideButtons](https://wiki.facepunch.com/gmod/DVScrollBar:SetHideButtons).
43
32
  * @realm client and menu
44
33
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:GetHideButtons
45
34
  */
46
35
  GetHideButtons(self: DVScrollBar): boolean;
47
- }
48
-
49
- interface DVScrollBar {
50
36
  /**
51
37
  * Returns the negative of [DVScrollBar:GetScroll](https://wiki.facepunch.com/gmod/DVScrollBar:GetScroll).
52
38
  * @realm client and menu
53
39
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:GetOffset
54
40
  */
55
41
  GetOffset(self: DVScrollBar): number;
56
- }
57
-
58
- interface DVScrollBar {
59
42
  /**
60
43
  * Returns the amount of scroll level from the top in pixels
61
44
  * @realm client and menu
62
45
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:GetScroll
63
46
  */
64
47
  GetScroll(self: DVScrollBar): number;
65
- }
66
-
67
- interface DVScrollBar {
68
48
  /**
69
49
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
70
50
  *
@@ -75,27 +55,18 @@ interface DVScrollBar {
75
55
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:Grip
76
56
  */
77
57
  Grip(self: DVScrollBar): void;
78
- }
79
-
80
- interface DVScrollBar {
81
58
  /**
82
59
  * Allows hiding the up and down buttons for better visual stylisation.
83
60
  * @realm client and menu
84
61
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:SetHideButtons
85
62
  */
86
63
  SetHideButtons(self: DVScrollBar, hide: boolean): void;
87
- }
88
-
89
- interface DVScrollBar {
90
64
  /**
91
65
  * Sets the scroll level in pixels.
92
66
  * @realm client and menu
93
67
  * @source https://wiki.facepunch.com/gmod/DVScrollBar:SetScroll
94
68
  */
95
69
  SetScroll(self: DVScrollBar, scroll: number): void;
96
- }
97
-
98
- interface DVScrollBar {
99
70
  /**
100
71
  * Sets up the scrollbar for use.
101
72
  *
@@ -107,3 +78,13 @@ interface DVScrollBar {
107
78
  SetUp(self: DVScrollBar, barSize: number, canvasSize: number): void;
108
79
  }
109
80
 
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
@@ -84,9 +84,7 @@
84
84
  *
85
85
  * @source https://wiki.facepunch.com/gmod/EFFECT_Hooks
86
86
  */
87
- interface EFFECT extends Entity {}
88
-
89
- interface EFFECT {
87
+ interface EFFECT extends Entity {
90
88
  /**
91
89
  * Used to get the "real" start position of a trace, for weapon tracer effects.
92
90
  *
@@ -96,18 +94,12 @@ interface EFFECT {
96
94
  * @source https://wiki.facepunch.com/gmod/EFFECT:GetTracerShootPos
97
95
  */
98
96
  GetTracerShootPos(self: EFFECT, pos: Vector, ent: Weapon, attachment: number): Vector;
99
- }
100
-
101
- interface EFFECT {
102
97
  /**
103
98
  * Called when the effect is created.
104
99
  * @realm client
105
100
  * @source https://wiki.facepunch.com/gmod/EFFECT:Init
106
101
  */
107
102
  Init(self: EFFECT, effectData: CEffectData): void;
108
- }
109
-
110
- interface EFFECT {
111
103
  /**
112
104
  * Called when the effect should be rendered.
113
105
  *
@@ -119,3 +111,6 @@ interface EFFECT {
119
111
  Render(self: EFFECT): void;
120
112
  }
121
113
 
114
+
115
+
116
+