Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added getResourceOrganizationalPath)
(Rework)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
*[[addResourceConfig]]
<includeonly>
*[[addResourceMap]]
<ul>
*[[call]]
{{#if: {{{1|}}}
*[[callRemote]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[fetchRemote]]
|
*[[copyResource]]
    <!-- CLIENT functions -->
*[[createResource]]
    <li>[[getResourceGUIElement]]</li>
*[[getResourceConfig]]
| {{#ifeq: {{lc:{{{1}}}}} | server
*[[getResourceDynamicElementRoot]]
|
*[[getResourceExportedFunctions]]
    <!-- SERVER functions -->
*[[getResourceFromName]]
    <li>[[addResourceConfig]]</li>
*[[getResourceInfo]]
    <li>[[addResourceMap]]</li>
*[[getResourceLastStartTime]]
    <li>[[callRemote]]</li>
*[[getResourceLoadFailureReason]]
    <li>[[copyResource]]</li>
*[[getResourceLoadTime]]
    <li>[[createResource]]</li>
*[[getResourceMapRootElement]]
    <li>[[deleteResource]]</li>
*[[getResourceName]]
    <li>[[getResourceACLRequests]]</li>
*[[getResourceRootElement]]
    <li>[[getResourceInfo]]</li>
*[[getResources]]
    <li>[[getResourceLastStartTime]]</li>
*[[getResourceState]]
    <li>[[getResourceLoadFailureReason]]</li>
*[[getThisResource]]
    <li>[[getResourceLoadTime]]</li>
*[[refreshResources]]
    <li>[[getResourceMapRootElement]]</li>
*[[removeResourceFile]]
    <li>[[getResourceOrganizationalPath]]</li>
*[[restartResource]]
    <li>[[getResources]]</li>
*[[startResource]]
    <li>[[isResourceArchived]]</li>
*[[stopResource]]
    <li>[[isResourceProtected]]</li>
*[[setResourceInfo]]
    <li>[[refreshResources]]</li>
*[[renameResource]]
    <li>[[removeResourceFile]]</li>
*[[deleteResource]]
    <li>[[renameResource]]</li>
*[[getResourceACLRequests]]
    <li>[[restartResource]]</li>
*[[updateResourceACLRequest]]
    <li>[[setResourceInfo]]</li>
*[[getResourceOrganizationalPath]]
    <li>[[startResource]]</li>
<noinclude>[[Category:Functions templates]]</noinclude>
    <li>[[stopResource]]</li>
    <li>[[updateResourceACLRequest]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
 
<!-- SHARED functions-->
<li>[[abortRemoteRequest]]</li>
<li>[[call]]</li>
<li>[[fetchRemote]]</li>
<li>[[getResourceConfig]]</li>
<li>[[getResourceDynamicElementRoot]]</li>
<li>[[getResourceExportedFunctions]]</li>
<li>[[getResourceFromName]]</li>
<li>[[getResourceName]]</li>
<li>[[getResourceRootElement]]</li>
<li>[[getResourceState]]</li>
<li>[[getThisResource]]</li>
<li>[[getRemoteRequests]]</li>
<li>[[getRemoteRequestInfo]]</li>
</ul>
</includeonly>
 
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 17:54, 6 September 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.