Template:Sdk method page: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Roy Curtis (talk | contribs)
added return code and return attributes tables
Sleepy E (talk | contribs)
mNo edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: right; width: 400px; {{box-sizing}} {{bg linearfade|color={{{color|204,100%,90%}}}}}; padding: 32px 16px 16px 16px; border-radius: 0px 0px 16px 16px;">'''Method call snippet'''
<div style="float: right; width: 400px; {{box-sizing}} {{bg linearfade|color={{{color|204,100%,90%}}}}}; padding: 32px 16px 16px 16px; border-radius: 0px 0px 16px 16px;">'''Method call snippet'''
<code style="display: block; padding: 8px; margin: 8px 0px; border: 1px dashed hsl(204,100%,70%);">vp_{{lc:{{{1|unknown}}}}}({{{customparamex| instance{{#if:{{{paramex|}}}|, {{{paramex}}}|}} }}});</code></div>
<code style="display: block; padding: 8px; margin: 8px 0px; border: 1px dashed hsl(204,100%,70%);">vp_{{lc:{{{1|unknown}}}}}({{{customparamex|instance{{#if:{{{paramex|}}}|, {{{paramex}}}|}}}}});</code></div>
<div style="font-family: Courier, monospace;">'''{{color|hsl({{huebytype|{{{returntype|int}}}}},100%,40%)|{{{returntype|int <sup title="SDK return code">[[Return code|RC]]</sup>}}}}}''' vp_{{lc:{{{1|unknown}}}}}({{{customparam| {{sdk parameter|VPInstance|instance}}{{#if:{{{param|}}}|, {{{param}}}|}} }}})</div>
----
{{{2}}}__NOTOC__
{{{2}}}__NOTOC__
== Parameters ==__NOEDITSECTION__
== Parameters ==__NOEDITSECTION__
Line 10: Line 8:
{{#if: {{{attributes|}}} |== Used attributes ==__NOEDITSECTION__
{{#if: {{{attributes|}}} |== Used attributes ==__NOEDITSECTION__
This method uses data set in these attributes when called:
This method uses data set in these attributes when called:
{{sdk attribute table|{{{attributes}}}}}
{{sdk attribute table|{{{attributes}}}}} |}}
|}}
== Returns ==__NOEDITSECTION__
== Returns ==__NOEDITSECTION__
{{{returns|This method returns a [[return code]] integer, which indicates whether the call was successful ({{code|0}}) or errored for any of these reasons:
{{{returns|This method returns a [[return code]] integer, which indicates whether the call was successful or errored for any reason:
{{sdk return code table|{{{returncodes}}}}}
{{sdk return code table|{{{returncodes|}}}}}
{{#if: {{{returnattributes|}}} |Upon a successful call, this method sets data in the following attributes:
{{#if: {{{returnattributes|}}} |The following attributes will be returned in {{Sdk callback|{{{1}}}}} if the operation was successful:
{{sdk attribute table|{{{returnattributes}}}}} |}} }}}
{{sdk return attribute table|{{{returnattributes}}}}} |}} }}}
== Behavior ==__NOEDITSECTION__
== Behavior ==__NOEDITSECTION__
{{#if: {{{behavior|}}} | {{{behavior}}} |:''There is no special behavior for this method''}}
{{#if: {{{behavior|}}} | {{{behavior}}} |:''There is no special behavior for this method''}}
Line 31: Line 28:
<pre>{{sdk event page|Event name|Event description
<pre>{{sdk event page|Event name|Event description
|returntype=
|returntype=
|param=
|paramex=
|paramex=
|parameters=
|parameters=

Latest revision as of 22:00, 1 August 2018

Method call snippet vp_unknown(instance);

{{{2}}}

Parameters

These are the parameters that this method requires:

Parameter Usage
VPInstance
instance
Pointer to the instance this method call is intended for

Returns

This method returns a return code integer, which indicates whether the call was successful or errored for any reason:

Return code Cause
VP_RC_SUCCESS Successful call (for methods that have a registered callback, it only means the request has been sent)

Behavior

There is no special behavior for this method

Examples

This method has no usage examples; please add at least one to this page


Usage

{{sdk event page|Event name|Event description
|returntype=
|paramex=
|parameters=
  {{sdk parameter row|type|name|description}}
|attributes=
  {{sdk attribute row|type|name|description}}
|returncodes=
  {{sdk return code row|name|cause}}
|returnattributes=
  {{sdk attribute row|type|name|description}}
|behavior=
|caveats=
|examples=
|seealso=
}}