-
Notifications
You must be signed in to change notification settings - Fork 0
/
csharp.liquid
32 lines (30 loc) · 961 Bytes
/
csharp.liquid
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
using System;
namespace Hotstar
{
public enum NATIVE_{{ category }} : ulong
{ {% for native in natives %}
{% if native.comment != "" %}
/// <summary>
/// {{ native.comment | replace: "\n", "\n /// " }}
///
{% for params in native.params %}
/// > {{ params.type }} {{ params.name }}
{%endfor%}
///
/// </summary>
{% endif %}
{{ native.name }} = {{ native.hash }},
{% endfor %}
}
public static class NATIVE_{{ category }}_EXTENSIONS
{
public static void Call(this NATIVE_{{ category }} hash, params RDR2.Native.InputArgument[] arguments)
{
RDR2.Native.Function.Call((ulong) hash, arguments);
}
public static T Call<T>(this NATIVE_{{ category }} hash, params RDR2.Native.InputArgument[] arguments)
{
return RDR2.Native.Function.Call<T>((ulong) hash, arguments);
}
}
}