-
Notifications
You must be signed in to change notification settings - Fork 4
/
NativeJson.cs
40 lines (32 loc) · 1020 Bytes
/
NativeJson.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
/*
All credit goes to JohnnyCrazy
(https://github.com/JohnnyCrazy/scripthookvdotnet/blob/native-generator/helpers/NativeGenerator/NativeFile.cs)
*/
namespace NativeGenerator.Json
{
public class NativeFile : Dictionary<string, NativeNamespace> { }
public class NativeNamespace : Dictionary<string, NativeFunction> { }
public class NativeFunction
{
public class Parameter
{
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
}
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("params")]
public List<Parameter> Params { get; set; }
[JsonProperty("results")]
public string Results { get; set; }
[JsonProperty("jhash")]
public string JHash { get; set; }
}
}