-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJSLibVariable.cs
55 lines (48 loc) · 1.3 KB
/
JSLibVariable.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
namespace Assets.UnityAngularBridge.SwaggerAttribute.Models
{
/// <summary>
/// Used in <seealso cref="JSLibExport"/> to set Unity methods to JS functions.
/// </summary>
public class JSLibVariable
{
/// <summary>
/// Variable name.
/// </summary>
public string MethodName { get; set; }
/// <summary>
/// Return type.
/// </summary>
public ReturnType ReturnType { get; set; }
/// <summary>
/// Default value.
/// </summary>
public string DefaultValue { get; set; }
/// <summary>
/// First parameter name (if has any).
/// Only possible with ReturnType String or StringArray.
/// </summary>
public string ParameterName { get; set; } = string.Empty;
/// <summary>
/// Method documentation.
/// </summary>
public string MethodDocumentation { get; set; }
}
/// <summary>
/// TypeScript return type enum for JSLibVariable.
/// </summary>
public enum ReturnType
{
/// <summary>
/// void.
/// </summary>
Void,
/// <summary>
/// string.
/// </summary>
String,
/// <summary>
/// string[].
/// </summary>
StringArray,
}
}