Skip to content

Commit 0e6c5d4

Browse files
authored
Merge pull request #51 from robotboy655/new-wiki-datas
Implement new data structures from the wiki
2 parents 34e9050 + db87726 commit 0e6c5d4

30 files changed

+146
-430
lines changed

__tests__/api-writer/glua-api-writer.spec.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ describe('GLua API Writer', () => {
107107
url: 'na',
108108
arguments: [
109109
{
110-
name: 'intensity',
111-
type: 'number',
112-
description: 'The intensity of the explosion.',
113-
default: '1000',
114-
},
110+
args: [ {
111+
name: 'intensity',
112+
type: 'number',
113+
description: 'The intensity of the explosion.',
114+
default: '1000',
115+
} ]
116+
}
115117
],
116118
returns: [
117119
{

__tests__/test-data/offline-sites/gmod-wiki/hook-player-initial-spawn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ net.Receive( "cool_addon_client_ready", function( len, ply )
128128
end )
129129
\`\`\`\n\n`,
130130
realm: 'Server',
131-
arguments: [
131+
arguments: [ { args: [
132132
{
133133
name: 'player',
134134
type: 'Player',
@@ -139,7 +139,7 @@ end )
139139
type: 'boolean',
140140
description: 'If `true`, the player just spawned from a map transition.',
141141
},
142-
],
142+
], } ],
143143
returns: [],
144144
};
145145

__tests__/test-data/offline-sites/gmod-wiki/library-function-ai-getscheduleid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export const json = {
1818
description: 'Translates a schedule name to its corresponding ID.',
1919
realm: 'Server',
2020
arguments: [
21-
{
21+
{ args: [ {
2222
name: 'sched',
2323
type: 'string',
2424
description: 'Then schedule name. In most cases, this will be the same as the Enums/SCHED name.',
25-
},
25+
} ] },
2626
],
2727
returns: [
2828
{

custom/Entity.ResetSequence.lua

Lines changed: 0 additions & 31 deletions
This file was deleted.

custom/Global.Color.lua

Lines changed: 0 additions & 10 deletions
This file was deleted.

custom/Global.CreateConVar.lua

Lines changed: 0 additions & 14 deletions
This file was deleted.

custom/_angle.lua

Lines changed: 0 additions & 17 deletions
This file was deleted.

custom/_surface.lua

Lines changed: 0 additions & 19 deletions
This file was deleted.

custom/_vector.lua

Lines changed: 0 additions & 17 deletions
This file was deleted.

custom/concommand.Add.lua

Lines changed: 0 additions & 20 deletions
This file was deleted.

custom/cvars.AddChangeCallback.lua

Lines changed: 0 additions & 14 deletions
This file was deleted.

custom/duplicator.RegisterBoneModifier.lua

Lines changed: 0 additions & 17 deletions
This file was deleted.

custom/duplicator.RegisterEntityClass.lua

Lines changed: 0 additions & 9 deletions
This file was deleted.

custom/duplicator.RegisterEntityModifier.lua

Lines changed: 0 additions & 10 deletions
This file was deleted.

custom/http.Fetch.lua

Lines changed: 0 additions & 30 deletions
This file was deleted.

custom/http.Post.lua

Lines changed: 0 additions & 25 deletions
This file was deleted.

custom/net.Receive.lua

Lines changed: 0 additions & 15 deletions
This file was deleted.

custom/saverestore.AddRestoreHook.lua

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)