Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Sorted alphabetically)
(Rework)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
*[[addResourceConfig]]
<includeonly>
*[[addResourceMap]]
<ul>
*[[call]]
{{#if: {{{1|}}}
*[[callRemote]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[copyResource]]
|
*[[createResource]]
    <!-- CLIENT functions -->
*[[deleteResource]]
    <li>[[getResourceGUIElement]]</li>
*[[fetchRemote]]
| {{#ifeq: {{lc:{{{1}}}}} | server
*[[getResourceACLRequests]]
|
*[[getResourceConfig]]
    <!-- SERVER functions -->
*[[getResourceDynamicElementRoot]]
    <li>[[addResourceConfig]]</li>
*[[getResourceExportedFunctions]]
    <li>[[addResourceMap]]</li>
*[[getResourceFromName]]
    <li>[[callRemote]]</li>
*[[getResourceInfo]]
    <li>[[copyResource]]</li>
*[[getResourceLastStartTime]]
    <li>[[createResource]]</li>
*[[getResourceLoadFailureReason]]
    <li>[[deleteResource]]</li>
*[[getResourceLoadTime]]
    <li>[[getResourceACLRequests]]</li>
*[[getResourceMapRootElement]]
    <li>[[getResourceInfo]]</li>
*[[getResourceName]]
    <li>[[getResourceLastStartTime]]</li>
*[[getResourceOrganizationalPath]]
    <li>[[getResourceLoadFailureReason]]</li>
*[[getResourceRootElement]]
    <li>[[getResourceLoadTime]]</li>
*[[getResourceState]]
    <li>[[getResourceMapRootElement]]</li>
*[[getResources]]
    <li>[[getResourceOrganizationalPath]]</li>
*[[getThisResource]]
    <li>[[getResources]]</li>
{{New items|3.0155|1.5.5|
    <li>[[isResourceArchived]]</li>
*[[isResourceArchived]]
    <li>[[isResourceProtected]]</li>
|11533}}
    <li>[[refreshResources]]</li>
*[[refreshResources]]
    <li>[[removeResourceFile]]</li>
*[[removeResourceFile]]
    <li>[[renameResource]]</li>
*[[renameResource]]
    <li>[[restartResource]]</li>
*[[restartResource]]
    <li>[[setResourceInfo]]</li>
*[[setResourceInfo]]
    <li>[[startResource]]</li>
*[[startResource]]
    <li>[[stopResource]]</li>
*[[stopResource]]
    <li>[[updateResourceACLRequest]]</li>
*[[updateResourceACLRequest]]
    }}
<noinclude>[[Category:Functions templates]]</noinclude>
  }}
</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.