@tlua/gmod 1.0.5 → 1.0.6
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.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/timer.d.tlua
CHANGED
|
@@ -13,6 +13,7 @@ interface TimerLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/timer.Adjust
|
|
14
14
|
*/
|
|
15
15
|
Adjust(identifier: any, delay: number, repetitions?: number, func?: function): boolean;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* This function does nothing.
|
|
18
19
|
* @realm shared and menu
|
|
@@ -20,6 +21,7 @@ interface TimerLib {
|
|
|
20
21
|
* @deprecated If you want to check if whether or not a timer exists, use timer.Exists.
|
|
21
22
|
*/
|
|
22
23
|
Check(): void;
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Creates a new timer that will repeat its function given amount of times.
|
|
25
27
|
* This function also requires the timer to be named, which allows you to control it after it was created via the [timer](https://wiki.facepunch.com/gmod/timer).
|
|
@@ -33,6 +35,7 @@ interface TimerLib {
|
|
|
33
35
|
* @source https://wiki.facepunch.com/gmod/timer.Create
|
|
34
36
|
*/
|
|
35
37
|
Create(identifier: string, delay: number, repetitions: number, func: function): void;
|
|
38
|
+
|
|
36
39
|
/**
|
|
37
40
|
* Stops and destroys the given timer. Alias of [timer.Remove](https://wiki.facepunch.com/gmod/timer.Remove).
|
|
38
41
|
* @realm shared and menu
|
|
@@ -40,6 +43,7 @@ interface TimerLib {
|
|
|
40
43
|
* @deprecated You should be using timer.Remove instead.
|
|
41
44
|
*/
|
|
42
45
|
Destroy(identifier: string): void;
|
|
46
|
+
|
|
43
47
|
/**
|
|
44
48
|
* Returns whenever the given timer exists or not.
|
|
45
49
|
*
|
|
@@ -54,6 +58,7 @@ interface TimerLib {
|
|
|
54
58
|
* @source https://wiki.facepunch.com/gmod/timer.Exists
|
|
55
59
|
*/
|
|
56
60
|
Exists(identifier: string): boolean;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* Returns whenever the given timer is paused or not. ([timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause))
|
|
59
64
|
*
|
|
@@ -62,12 +67,14 @@ interface TimerLib {
|
|
|
62
67
|
* @source https://wiki.facepunch.com/gmod/timer.IsPaused
|
|
63
68
|
*/
|
|
64
69
|
IsPaused(identifier: string): boolean;
|
|
70
|
+
|
|
65
71
|
/**
|
|
66
72
|
* Pauses the given timer.
|
|
67
73
|
* @realm shared and menu
|
|
68
74
|
* @source https://wiki.facepunch.com/gmod/timer.Pause
|
|
69
75
|
*/
|
|
70
76
|
Pause(identifier: any): void;
|
|
77
|
+
|
|
71
78
|
/**
|
|
72
79
|
* Stops and removes a timer created by [timer.Create](https://wiki.facepunch.com/gmod/timer.Create).
|
|
73
80
|
* **WARNING**: The timers are removed in the next frame! Keep this in mind when storing identifiers in variables.
|
|
@@ -77,6 +84,7 @@ interface TimerLib {
|
|
|
77
84
|
* @source https://wiki.facepunch.com/gmod/timer.Remove
|
|
78
85
|
*/
|
|
79
86
|
Remove(identifier: string): void;
|
|
87
|
+
|
|
80
88
|
/**
|
|
81
89
|
* Returns amount of repetitions/executions left before the timer destroys itself.
|
|
82
90
|
*
|
|
@@ -84,6 +92,7 @@ interface TimerLib {
|
|
|
84
92
|
* @source https://wiki.facepunch.com/gmod/timer.RepsLeft
|
|
85
93
|
*/
|
|
86
94
|
RepsLeft(identifier: any): number;
|
|
95
|
+
|
|
87
96
|
/**
|
|
88
97
|
* Creates a simple timer that runs the given function after a specified delay.
|
|
89
98
|
*
|
|
@@ -114,6 +123,7 @@ interface TimerLib {
|
|
|
114
123
|
* @source https://wiki.facepunch.com/gmod/timer.Simple
|
|
115
124
|
*/
|
|
116
125
|
Simple(delay: number, func: function): void;
|
|
126
|
+
|
|
117
127
|
/**
|
|
118
128
|
* Restarts the given timer.
|
|
119
129
|
*
|
|
@@ -124,12 +134,14 @@ interface TimerLib {
|
|
|
124
134
|
* @source https://wiki.facepunch.com/gmod/timer.Start
|
|
125
135
|
*/
|
|
126
136
|
Start(identifier: any): void;
|
|
137
|
+
|
|
127
138
|
/**
|
|
128
139
|
* Stops the given timer and rewinds it.
|
|
129
140
|
* @realm shared and menu
|
|
130
141
|
* @source https://wiki.facepunch.com/gmod/timer.Stop
|
|
131
142
|
*/
|
|
132
143
|
Stop(identifier: any): void;
|
|
144
|
+
|
|
133
145
|
/**
|
|
134
146
|
* Returns amount of time left (in seconds) before the timer executes its function.
|
|
135
147
|
*
|
|
@@ -140,12 +152,14 @@ interface TimerLib {
|
|
|
140
152
|
* @source https://wiki.facepunch.com/gmod/timer.TimeLeft
|
|
141
153
|
*/
|
|
142
154
|
TimeLeft(identifier: any): number;
|
|
155
|
+
|
|
143
156
|
/**
|
|
144
157
|
* Runs either [timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause) or [timer.UnPause](https://wiki.facepunch.com/gmod/timer.UnPause) based on the timer's current status.
|
|
145
158
|
* @realm shared and menu
|
|
146
159
|
* @source https://wiki.facepunch.com/gmod/timer.Toggle
|
|
147
160
|
*/
|
|
148
161
|
Toggle(identifier: any): void;
|
|
162
|
+
|
|
149
163
|
/**
|
|
150
164
|
* Unpauses the timer.
|
|
151
165
|
* @realm shared and menu
|
|
@@ -153,18 +167,3 @@ interface TimerLib {
|
|
|
153
167
|
*/
|
|
154
168
|
UnPause(identifier: any): void;
|
|
155
169
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
package/types/tool.d.tlua
CHANGED
|
@@ -15,12 +15,14 @@ interface Tool {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/TOOL:Deploy
|
|
16
16
|
*/
|
|
17
17
|
Deploy(self: Tool): boolean;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Called when [WEAPON:DrawHUD](https://wiki.facepunch.com/gmod/WEAPON:DrawHUD) of the toolgun is called, only when the user has this tool selected.
|
|
20
21
|
* @realm client
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/TOOL:DrawHUD
|
|
22
23
|
*/
|
|
23
24
|
DrawHUD(self: Tool): void;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Called after the default tool screen has been drawn from [WEAPON:RenderScreen](https://wiki.facepunch.com/gmod/WEAPON:RenderScreen).
|
|
26
28
|
*
|
|
@@ -33,42 +35,49 @@ interface Tool {
|
|
|
33
35
|
* @source https://wiki.facepunch.com/gmod/TOOL:DrawToolScreen
|
|
34
36
|
*/
|
|
35
37
|
DrawToolScreen(self: Tool, width: number, height: number): void;
|
|
38
|
+
|
|
36
39
|
/**
|
|
37
40
|
* Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called, only when the user has this tool selected.
|
|
38
41
|
* @realm client
|
|
39
42
|
* @source https://wiki.facepunch.com/gmod/TOOL:FreezeMovement
|
|
40
43
|
*/
|
|
41
44
|
FreezeMovement(self: Tool): boolean;
|
|
45
|
+
|
|
42
46
|
/**
|
|
43
47
|
* Called when [WEAPON:Holster](https://wiki.facepunch.com/gmod/WEAPON:Holster) of the toolgun is called, when switching between different toolguns.
|
|
44
48
|
* @realm shared
|
|
45
49
|
* @source https://wiki.facepunch.com/gmod/TOOL:Holster
|
|
46
50
|
*/
|
|
47
51
|
Holster(self: Tool): void;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Called when the user left clicks with the tool.
|
|
50
55
|
* @realm shared
|
|
51
56
|
* @source https://wiki.facepunch.com/gmod/TOOL:LeftClick
|
|
52
57
|
*/
|
|
53
58
|
LeftClick(self: Tool, tr: TraceResult): boolean;
|
|
59
|
+
|
|
54
60
|
/**
|
|
55
61
|
* Called when the user presses the reload key with the tool out.
|
|
56
62
|
* @realm shared
|
|
57
63
|
* @source https://wiki.facepunch.com/gmod/TOOL:Reload
|
|
58
64
|
*/
|
|
59
65
|
Reload(self: Tool, tr: TraceResult): boolean;
|
|
66
|
+
|
|
60
67
|
/**
|
|
61
68
|
* Called when the user right clicks with the tool.
|
|
62
69
|
* @realm shared
|
|
63
70
|
* @source https://wiki.facepunch.com/gmod/TOOL:RightClick
|
|
64
71
|
*/
|
|
65
72
|
RightClick(self: Tool, tr: TraceResult): boolean;
|
|
73
|
+
|
|
66
74
|
/**
|
|
67
75
|
* Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called. This only happens when the tool gun is currently equipped/selected by the player and the selected tool is this tool.
|
|
68
76
|
* @realm shared
|
|
69
77
|
* @source https://wiki.facepunch.com/gmod/TOOL:Think
|
|
70
78
|
*/
|
|
71
79
|
Think(self: Tool): void;
|
|
80
|
+
|
|
72
81
|
/**
|
|
73
82
|
* Called when the tool's control panel needs to be rebuilt.
|
|
74
83
|
*
|
|
@@ -78,6 +87,7 @@ interface Tool {
|
|
|
78
87
|
* @source https://wiki.facepunch.com/gmod/TOOL.BuildCPanel
|
|
79
88
|
*/
|
|
80
89
|
BuildCPanel(panel: ControlPanel): void;
|
|
90
|
+
|
|
81
91
|
/**
|
|
82
92
|
* Returns whether the tool is allowed to be used or not. This function ignores the [SANDBOX:CanTool](https://wiki.facepunch.com/gmod/SANDBOX:CanTool) hook.
|
|
83
93
|
*
|
|
@@ -87,12 +97,14 @@ interface Tool {
|
|
|
87
97
|
* @source https://wiki.facepunch.com/gmod/Tool:Allowed
|
|
88
98
|
*/
|
|
89
99
|
Allowed(self: Tool): boolean;
|
|
100
|
+
|
|
90
101
|
/**
|
|
91
102
|
* Builds a list of all ConVars set via the ClientConVar variable on the [Structures/TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) and their default values. This is used for the preset system.
|
|
92
103
|
* @realm shared
|
|
93
104
|
* @source https://wiki.facepunch.com/gmod/Tool:BuildConVarList
|
|
94
105
|
*/
|
|
95
106
|
BuildConVarList(self: Tool): table;
|
|
107
|
+
|
|
96
108
|
/**
|
|
97
109
|
* **INTERNAL**: This is called automatically for most toolgun actions so you shouldn't need to use it.
|
|
98
110
|
*
|
|
@@ -103,12 +115,14 @@ interface Tool {
|
|
|
103
115
|
* @source https://wiki.facepunch.com/gmod/Tool:CheckObjects
|
|
104
116
|
*/
|
|
105
117
|
CheckObjects(self: Tool): void;
|
|
118
|
+
|
|
106
119
|
/**
|
|
107
120
|
* Clears all objects previously set with [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
108
121
|
* @realm shared
|
|
109
122
|
* @source https://wiki.facepunch.com/gmod/Tool:ClearObjects
|
|
110
123
|
*/
|
|
111
124
|
ClearObjects(self: Tool): void;
|
|
125
|
+
|
|
112
126
|
/**
|
|
113
127
|
* **INTERNAL**: This is called automatically for all tools.
|
|
114
128
|
*
|
|
@@ -118,6 +132,7 @@ interface Tool {
|
|
|
118
132
|
* @source https://wiki.facepunch.com/gmod/Tool:Create
|
|
119
133
|
*/
|
|
120
134
|
Create(self: Tool): Tool;
|
|
135
|
+
|
|
121
136
|
/**
|
|
122
137
|
* **INTERNAL**: This is called automatically for all tools.
|
|
123
138
|
*
|
|
@@ -128,42 +143,49 @@ interface Tool {
|
|
|
128
143
|
* @source https://wiki.facepunch.com/gmod/Tool:CreateConVars
|
|
129
144
|
*/
|
|
130
145
|
CreateConVars(self: Tool): void;
|
|
146
|
+
|
|
131
147
|
/**
|
|
132
148
|
* Retrieves a physics bone number previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
133
149
|
* @realm shared
|
|
134
150
|
* @source https://wiki.facepunch.com/gmod/Tool:GetBone
|
|
135
151
|
*/
|
|
136
152
|
GetBone(self: Tool, id: number): number;
|
|
153
|
+
|
|
137
154
|
/**
|
|
138
155
|
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a [boolean](https://wiki.facepunch.com/gmod/boolean).
|
|
139
156
|
* @realm shared
|
|
140
157
|
* @source https://wiki.facepunch.com/gmod/Tool:GetClientBool
|
|
141
158
|
*/
|
|
142
159
|
GetClientBool(self: Tool, name: string, _default?: boolean): number;
|
|
160
|
+
|
|
143
161
|
/**
|
|
144
162
|
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) as a [string](https://wiki.facepunch.com/gmod/string).
|
|
145
163
|
* @realm shared
|
|
146
164
|
* @source https://wiki.facepunch.com/gmod/Tool:GetClientInfo
|
|
147
165
|
*/
|
|
148
166
|
GetClientInfo(self: Tool, name: string): string;
|
|
167
|
+
|
|
149
168
|
/**
|
|
150
169
|
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar)'s value as a [number](https://wiki.facepunch.com/gmod/number).
|
|
151
170
|
* @realm shared
|
|
152
171
|
* @source https://wiki.facepunch.com/gmod/Tool:GetClientNumber
|
|
153
172
|
*/
|
|
154
173
|
GetClientNumber(self: Tool, name: string, _default?: number): number;
|
|
174
|
+
|
|
155
175
|
/**
|
|
156
176
|
* Retrieves an Entity previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
157
177
|
* @realm shared
|
|
158
178
|
* @source https://wiki.facepunch.com/gmod/Tool:GetEnt
|
|
159
179
|
*/
|
|
160
180
|
GetEnt(self: Tool, id: number): Entity;
|
|
181
|
+
|
|
161
182
|
/**
|
|
162
183
|
* Returns a language key based on this tool's name and the current stage it is on.
|
|
163
184
|
* @realm shared
|
|
164
185
|
* @source https://wiki.facepunch.com/gmod/Tool:GetHelpText
|
|
165
186
|
*/
|
|
166
187
|
GetHelpText(self: Tool): string;
|
|
188
|
+
|
|
167
189
|
/**
|
|
168
190
|
* Retrieves an local vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
169
191
|
* See also [Tool:GetPos](https://wiki.facepunch.com/gmod/Tool:GetPos).
|
|
@@ -172,30 +194,35 @@ interface Tool {
|
|
|
172
194
|
* @source https://wiki.facepunch.com/gmod/Tool:GetLocalPos
|
|
173
195
|
*/
|
|
174
196
|
GetLocalPos(self: Tool, id: number): Vector;
|
|
197
|
+
|
|
175
198
|
/**
|
|
176
199
|
* Returns the name of the current tool mode.
|
|
177
200
|
* @realm shared
|
|
178
201
|
* @source https://wiki.facepunch.com/gmod/Tool:GetMode
|
|
179
202
|
*/
|
|
180
203
|
GetMode(self: Tool): string;
|
|
204
|
+
|
|
181
205
|
/**
|
|
182
206
|
* Retrieves an normal vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
183
207
|
* @realm shared
|
|
184
208
|
* @source https://wiki.facepunch.com/gmod/Tool:GetNormal
|
|
185
209
|
*/
|
|
186
210
|
GetNormal(self: Tool, id: number): Vector;
|
|
211
|
+
|
|
187
212
|
/**
|
|
188
213
|
* Returns the current operation of the tool set by [Tool:SetOperation](https://wiki.facepunch.com/gmod/Tool:SetOperation).
|
|
189
214
|
* @realm shared
|
|
190
215
|
* @source https://wiki.facepunch.com/gmod/Tool:GetOperation
|
|
191
216
|
*/
|
|
192
217
|
GetOperation(self: Tool): number;
|
|
218
|
+
|
|
193
219
|
/**
|
|
194
220
|
* Returns the owner of this tool.
|
|
195
221
|
* @realm shared
|
|
196
222
|
* @source https://wiki.facepunch.com/gmod/Tool:GetOwner
|
|
197
223
|
*/
|
|
198
224
|
GetOwner(self: Tool): Player;
|
|
225
|
+
|
|
199
226
|
/**
|
|
200
227
|
* Retrieves an [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
201
228
|
* See also [Tool:GetEnt](https://wiki.facepunch.com/gmod/Tool:GetEnt).
|
|
@@ -204,6 +231,7 @@ interface Tool {
|
|
|
204
231
|
* @source https://wiki.facepunch.com/gmod/Tool:GetPhys
|
|
205
232
|
*/
|
|
206
233
|
GetPhys(self: Tool, id: number): PhysObj;
|
|
234
|
+
|
|
207
235
|
/**
|
|
208
236
|
* Retrieves a vector previously stored using Tool:SetObject. See also
|
|
209
237
|
* Tool:GetLocalPos.
|
|
@@ -211,6 +239,7 @@ interface Tool {
|
|
|
211
239
|
* @source https://wiki.facepunch.com/gmod/Tool:GetPos
|
|
212
240
|
*/
|
|
213
241
|
GetPos(self: Tool, id?: number): Vector;
|
|
242
|
+
|
|
214
243
|
/**
|
|
215
244
|
* Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
|
|
216
245
|
* @realm shared
|
|
@@ -218,6 +247,7 @@ interface Tool {
|
|
|
218
247
|
* @deprecated Use Tool:GetWeapon instead.
|
|
219
248
|
*/
|
|
220
249
|
GetSWEP(self: Tool): Weapon;
|
|
250
|
+
|
|
221
251
|
/**
|
|
222
252
|
* Attempts to grab a serverside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
223
253
|
* This will not do anything on client, despite the function being defined shared.
|
|
@@ -226,18 +256,21 @@ interface Tool {
|
|
|
226
256
|
* @source https://wiki.facepunch.com/gmod/Tool:GetServerInfo
|
|
227
257
|
*/
|
|
228
258
|
GetServerInfo(self: Tool, name: string): string;
|
|
259
|
+
|
|
229
260
|
/**
|
|
230
261
|
* Returns the current stage of the tool set by [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
|
|
231
262
|
* @realm shared
|
|
232
263
|
* @source https://wiki.facepunch.com/gmod/Tool:GetStage
|
|
233
264
|
*/
|
|
234
265
|
GetStage(self: Tool): number;
|
|
266
|
+
|
|
235
267
|
/**
|
|
236
268
|
* Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
|
|
237
269
|
* @realm shared
|
|
238
270
|
* @source https://wiki.facepunch.com/gmod/Tool:GetWeapon
|
|
239
271
|
*/
|
|
240
272
|
GetWeapon(self: Tool): Weapon;
|
|
273
|
+
|
|
241
274
|
/**
|
|
242
275
|
* Initializes the ghost entity with the given model. Removes any old ghost entity if called multiple times.
|
|
243
276
|
*
|
|
@@ -247,6 +280,7 @@ interface Tool {
|
|
|
247
280
|
* @source https://wiki.facepunch.com/gmod/Tool:MakeGhostEntity
|
|
248
281
|
*/
|
|
249
282
|
MakeGhostEntity(self: Tool, model: string, pos: Vector, angle: Angle): void;
|
|
283
|
+
|
|
250
284
|
/**
|
|
251
285
|
* Returns the amount of stored objects ( [Entity](https://wiki.facepunch.com/gmod/Entity)s ) the tool has.
|
|
252
286
|
* Are TOOLs limited to 4 entities?
|
|
@@ -255,12 +289,14 @@ interface Tool {
|
|
|
255
289
|
* @source https://wiki.facepunch.com/gmod/Tool:NumObjects
|
|
256
290
|
*/
|
|
257
291
|
NumObjects(self: Tool): number;
|
|
292
|
+
|
|
258
293
|
/**
|
|
259
294
|
* Automatically forces the tool's control panel to be rebuilt.
|
|
260
295
|
* @realm client
|
|
261
296
|
* @source https://wiki.facepunch.com/gmod/Tool:RebuildControlPanel
|
|
262
297
|
*/
|
|
263
298
|
RebuildControlPanel(self: Tool, ...: any): void;
|
|
299
|
+
|
|
264
300
|
/**
|
|
265
301
|
* Removes any ghost entity created for this tool.
|
|
266
302
|
*
|
|
@@ -269,6 +305,7 @@ interface Tool {
|
|
|
269
305
|
* @source https://wiki.facepunch.com/gmod/Tool:ReleaseGhostEntity
|
|
270
306
|
*/
|
|
271
307
|
ReleaseGhostEntity(self: Tool): void;
|
|
308
|
+
|
|
272
309
|
/**
|
|
273
310
|
* Stores an [Entity](https://wiki.facepunch.com/gmod/Entity) for later use in the tool.
|
|
274
311
|
*
|
|
@@ -278,6 +315,7 @@ interface Tool {
|
|
|
278
315
|
* @source https://wiki.facepunch.com/gmod/Tool:SetObject
|
|
279
316
|
*/
|
|
280
317
|
SetObject(self: Tool, id: number, ent: Entity, pos: Vector, phys: PhysObj, bone: number, normal: Vector): void;
|
|
318
|
+
|
|
281
319
|
/**
|
|
282
320
|
* Sets the current operation of the tool. Does nothing clientside. See also [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
|
|
283
321
|
*
|
|
@@ -295,6 +333,7 @@ interface Tool {
|
|
|
295
333
|
* @source https://wiki.facepunch.com/gmod/Tool:SetOperation
|
|
296
334
|
*/
|
|
297
335
|
SetOperation(self: Tool, operation: number): void;
|
|
336
|
+
|
|
298
337
|
/**
|
|
299
338
|
* Sets the current stage of the tool. Does nothing clientside.
|
|
300
339
|
*
|
|
@@ -304,12 +343,14 @@ interface Tool {
|
|
|
304
343
|
* @source https://wiki.facepunch.com/gmod/Tool:SetStage
|
|
305
344
|
*/
|
|
306
345
|
SetStage(self: Tool, stage: number): void;
|
|
346
|
+
|
|
307
347
|
/**
|
|
308
348
|
* Initializes the ghost entity based on the supplied entity.
|
|
309
349
|
* @realm shared
|
|
310
350
|
* @source https://wiki.facepunch.com/gmod/Tool:StartGhostEntity
|
|
311
351
|
*/
|
|
312
352
|
StartGhostEntity(self: Tool, ent: Entity): void;
|
|
353
|
+
|
|
313
354
|
/**
|
|
314
355
|
* **INTERNAL**: Called on deploy automatically
|
|
315
356
|
*
|
|
@@ -320,6 +361,7 @@ interface Tool {
|
|
|
320
361
|
* @source https://wiki.facepunch.com/gmod/Tool:UpdateData
|
|
321
362
|
*/
|
|
322
363
|
UpdateData(self: Tool): void;
|
|
364
|
+
|
|
323
365
|
/**
|
|
324
366
|
* Updates the position and orientation of the ghost entity based on where the toolgun owner is looking along with data from object with id 1 set by [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
325
367
|
*
|
|
@@ -333,49 +375,3 @@ interface Tool {
|
|
|
333
375
|
UpdateGhostEntity(self: Tool): void;
|
|
334
376
|
}
|
|
335
377
|
interface TOOL extends Tool {}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
@@ -14,42 +14,49 @@ interface UGCPublishWindow extends DFrame {
|
|
|
14
14
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:CheckInput
|
|
15
15
|
*/
|
|
16
16
|
CheckInput(self: UGCPublishWindow): void;
|
|
17
|
+
|
|
17
18
|
/**
|
|
18
19
|
* Displays the given error message.
|
|
19
20
|
* @realm menu
|
|
20
21
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DisplayError
|
|
21
22
|
*/
|
|
22
23
|
DisplayError(self: UGCPublishWindow, err: string): void;
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Publishes the Item or throws an error if the Title or Tags are invalid
|
|
25
27
|
* @realm menu
|
|
26
28
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DoPublish
|
|
27
29
|
*/
|
|
28
30
|
DoPublish(self: UGCPublishWindow, wsid: string, err: string): void;
|
|
31
|
+
|
|
29
32
|
/**
|
|
30
33
|
* Rezises the panel to nicely fit all children
|
|
31
34
|
* @realm menu
|
|
32
35
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:FitContents
|
|
33
36
|
*/
|
|
34
37
|
FitContents(self: UGCPublishWindow): void;
|
|
38
|
+
|
|
35
39
|
/**
|
|
36
40
|
* Returns the name of the current selected tag.
|
|
37
41
|
* @realm menu
|
|
38
42
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:GetChosenTag
|
|
39
43
|
*/
|
|
40
44
|
GetChosenTag(self: UGCPublishWindow): string;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* Called when the Item was published or if any error occurred while publishing
|
|
43
48
|
* @realm menu
|
|
44
49
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:OnPublishFinished
|
|
45
50
|
*/
|
|
46
51
|
OnPublishFinished(self: UGCPublishWindow, wsid: string, err: string): void;
|
|
52
|
+
|
|
47
53
|
/**
|
|
48
54
|
* updated the Workshop items list.
|
|
49
55
|
* @realm menu
|
|
50
56
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:Setup
|
|
51
57
|
*/
|
|
52
58
|
Setup(self: UGCPublishWindow, ugcType: string, file: string, imageFile: string, handler: WorkshopFileBase): void;
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
* updated the Workshop items list.
|
|
55
62
|
* @realm menu
|
|
@@ -57,12 +64,3 @@ interface UGCPublishWindow extends DFrame {
|
|
|
57
64
|
*/
|
|
58
65
|
UpdateWorkshopItems(self: UGCPublishWindow): void;
|
|
59
66
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
package/types/umsg.d.tlua
CHANGED
|
@@ -18,6 +18,7 @@ interface UmsgLib {
|
|
|
18
18
|
* @deprecated You should be using the net instead
|
|
19
19
|
*/
|
|
20
20
|
Angle(angle: Angle): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Writes a bool to the usermessage.
|
|
23
24
|
* @realm server
|
|
@@ -25,6 +26,7 @@ interface UmsgLib {
|
|
|
25
26
|
* @deprecated You should be using the net instead
|
|
26
27
|
*/
|
|
27
28
|
Bool(bool: boolean): void;
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* Writes a signed char to the usermessage.
|
|
30
32
|
* @realm server
|
|
@@ -32,6 +34,7 @@ interface UmsgLib {
|
|
|
32
34
|
* @deprecated You should be using the net instead
|
|
33
35
|
*/
|
|
34
36
|
Char(char: number): void;
|
|
37
|
+
|
|
35
38
|
/**
|
|
36
39
|
* Dispatches the usermessage to the client(s).
|
|
37
40
|
* @realm server
|
|
@@ -39,6 +42,7 @@ interface UmsgLib {
|
|
|
39
42
|
* @deprecated You should be using the net instead
|
|
40
43
|
*/
|
|
41
44
|
End(): void;
|
|
45
|
+
|
|
42
46
|
/**
|
|
43
47
|
* Writes an entity object to the usermessage. (As an entity handle, which means the entity index + its serial number)
|
|
44
48
|
* @realm server
|
|
@@ -46,6 +50,7 @@ interface UmsgLib {
|
|
|
46
50
|
* @deprecated You should be using the net instead
|
|
47
51
|
*/
|
|
48
52
|
Entity(entity: Entity): void;
|
|
53
|
+
|
|
49
54
|
/**
|
|
50
55
|
* Writes a float to the usermessage.
|
|
51
56
|
* @realm server
|
|
@@ -53,6 +58,7 @@ interface UmsgLib {
|
|
|
53
58
|
* @deprecated You should be using the net instead
|
|
54
59
|
*/
|
|
55
60
|
Float(float: number): void;
|
|
61
|
+
|
|
56
62
|
/**
|
|
57
63
|
* Writes a signed int (32 bit) to the usermessage.
|
|
58
64
|
* @realm server
|
|
@@ -60,6 +66,7 @@ interface UmsgLib {
|
|
|
60
66
|
* @deprecated You should be using the net instead
|
|
61
67
|
*/
|
|
62
68
|
Long(int: number): void;
|
|
69
|
+
|
|
63
70
|
/**
|
|
64
71
|
* The string specified will be networked to the client and receive a identifying number, which will be sent instead of the string to optimize networking.
|
|
65
72
|
*
|
|
@@ -68,6 +75,7 @@ interface UmsgLib {
|
|
|
68
75
|
* @deprecated Inferior version of util.AddNetworkString
|
|
69
76
|
*/
|
|
70
77
|
PoolString(string: string): void;
|
|
78
|
+
|
|
71
79
|
/**
|
|
72
80
|
* Writes a signed short (16 bit) to the usermessage.
|
|
73
81
|
* @realm server
|
|
@@ -75,6 +83,7 @@ interface UmsgLib {
|
|
|
75
83
|
* @deprecated You should be using the net instead
|
|
76
84
|
*/
|
|
77
85
|
Short(short: number): void;
|
|
86
|
+
|
|
78
87
|
/**
|
|
79
88
|
* Starts a new usermessage.
|
|
80
89
|
*
|
|
@@ -86,6 +95,7 @@ interface UmsgLib {
|
|
|
86
95
|
* @deprecated You should be using net instead
|
|
87
96
|
*/
|
|
88
97
|
Start(name: string, filter?: Player): void;
|
|
98
|
+
|
|
89
99
|
/**
|
|
90
100
|
* Writes a null terminated string to the usermessage.
|
|
91
101
|
* @realm server
|
|
@@ -93,6 +103,7 @@ interface UmsgLib {
|
|
|
93
103
|
* @deprecated You should be using the net instead
|
|
94
104
|
*/
|
|
95
105
|
String(string: string): void;
|
|
106
|
+
|
|
96
107
|
/**
|
|
97
108
|
* Writes a Vector to the usermessage.
|
|
98
109
|
* @realm server
|
|
@@ -100,6 +111,7 @@ interface UmsgLib {
|
|
|
100
111
|
* @deprecated You should be using the net instead
|
|
101
112
|
*/
|
|
102
113
|
Vector(vector: Vector): void;
|
|
114
|
+
|
|
103
115
|
/**
|
|
104
116
|
* Writes a vector normal to the usermessage.
|
|
105
117
|
* @realm server
|
|
@@ -108,16 +120,3 @@ interface UmsgLib {
|
|
|
108
120
|
*/
|
|
109
121
|
VectorNormal(normal: Vector): void;
|
|
110
122
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|