48 | {%- if current_method.documented %}
49 | {{ current_method.description|parse_links }}
50 | {%- else %}
51 |
This method is undocumented. Use at your own risk.
52 |
For temporary documentation, please check the LuaFunctions source file.
53 | {%- endif %}
54 |
55 | {%- if current_method.tables %}
56 |
57 | {{ current_method.tables }}
58 |
59 | {%- endif %}
60 |
61 |
62 |
65 | {%- for prototype in current_method.prototypes %}
66 |
67 | {{ prototype }}
68 |
69 | {%- endfor %}
70 |
71 |
74 |
75 | {%- if current_method.parameters|length > 0 %}
76 | {%- for param in current_method.parameters %}
77 |
78 | {{ param.data_type|escape|parse_data_type }} {{ param.name if param.data_type != '...' }} {{- ' (' + param.default_value + ')' if param.default_value }}
79 | - {{ param.description|parse_links if param.description else 'See method description.' }}
80 |
81 | {%- endfor %}
82 | {%- elif not current_method.documented %}
83 | Unknown.
84 | {%- else %}
85 | None.
86 | {%- endif %}
87 |
88 |
89 |
92 |
93 | {%- if current_method.returned|length > 0 %}
94 | {%- for returned in current_method.returned %}
95 |
96 | {{ returned.data_type|escape|parse_data_type }} {{ returned.name }}
97 | - {{ returned.description|parse_links if returned.description else 'See method description.' }}
98 |
99 | {%- endfor %}
100 | {%- elif not current_method.documented %}
101 | Unknown.
102 | {%- else %}
103 | Nothing.
104 | {%- endif %}
105 |
106 |
107 | {% endblock %}
108 |
--------------------------------------------------------------------------------
/hooks/HookHelpers.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 - 2024 Eluna Lua Engine