Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (add isResourceArchived)
(Rework)
 
(9 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>
{{New items|3.0155|1.5.5|
    <li>[[getResourceLoadTime]]</li>
*[[isResourceArchived]]
    <li>[[getResourceMapRootElement]]</li>
11533|}}
    <li>[[getResourceOrganizationalPath]]</li>
*[[getThisResource]]
    <li>[[getResources]]</li>
*[[refreshResources]]
    <li>[[isResourceArchived]]</li>
*[[removeResourceFile]]
    <li>[[isResourceProtected]]</li>
*[[restartResource]]
    <li>[[refreshResources]]</li>
*[[startResource]]
    <li>[[removeResourceFile]]</li>
*[[stopResource]]
    <li>[[renameResource]]</li>
*[[setResourceInfo]]
    <li>[[restartResource]]</li>
*[[renameResource]]
    <li>[[setResourceInfo]]</li>
*[[deleteResource]]
    <li>[[startResource]]</li>
*[[getResourceACLRequests]]
    <li>[[stopResource]]</li>
*[[updateResourceACLRequest]]
    <li>[[updateResourceACLRequest]]</li>
*[[getResourceOrganizationalPath]]
    }}
<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.