模板:PublicMethod

出自gamedev
於 2023年6月2日 (五) 05:47 由 183.129.118.43留言 所做的修訂 (创建页面,内容为“<noinclude>Template output: <blockquote> </noinclude>; ''<span style="color:darkgreen;">{{{1|}}}</span>({{#if: {{{params|}}} | {{{params|}}} }})'' : {{#if: {{{desc|}…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

Template output:

()

Description[編輯]

Template for creating method representations.

Examples[編輯]

Input {{PublicMethod | helloWorld | desc=A test method. | params=param1, param2|paramlist=

{{MethodParam | param1 | type=int | desc=First parameter}}
{{MethodParam | param2 | type=String|desc=Second parameter}} | ret=An integer value. | rettype=int }}

Output
helloWorld (param1, param2)
A test method. Template:MethodParam

Template:MethodParam

returns: (int) An integer value.