Auto commit by GitHub Actions Workflow

This commit is contained in:
MooseBotter
2024-03-11 17:22:21 +00:00
parent f865a32f2b
commit 71696a8510
27 changed files with 815 additions and 987 deletions

View File

@@ -1697,6 +1697,18 @@ If the DCS Static object does not exist or is nil, the STATIC methods will retur
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(STATIC).Find">STATIC:Find(DCSStatic)</a></p></td>
<td class="summary w3-half w3-container" style="word-wrap: break-word">
<p>Finds a STATIC from the _DATABASE using a DCSStatic object.</p>
</td>
</tr>
<tr class="w3-border">
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(STATIC).FindAllByMatching">STATIC:FindAllByMatching(Pattern)</a></p></td>
<td class="summary w3-half w3-container" style="word-wrap: break-word">
<p>Find all STATIC objects matching using patterns.</p>
</td>
</tr>
<tr class="w3-border">
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(STATIC).FindByMatching">STATIC:FindByMatching(Pattern)</a></p></td>
<td class="summary w3-half w3-container" style="word-wrap: break-word">
<p>Find the first(!) STATIC matching using patterns.</p>
</td>
</tr>
<tr class="w3-border">
@@ -1738,7 +1750,7 @@ If the DCS Static object does not exist or is nil, the STATIC methods will retur
<tr class="w3-border">
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(STATIC).ReSpawn">STATIC:ReSpawn(CountryID, Delay)</a></p></td>
<td class="summary w3-half w3-container" style="word-wrap: break-word">
<p>Respawn the <a href="Wrapper.Unit.html">Wrapper.Unit</a> at the same location with the same properties.</p>
<p>Respawn the <a href="Wrapper.Static.html">Wrapper.Static</a> at the same location with the same properties.</p>
</td>
</tr>
<tr class="w3-border">
@@ -3188,6 +3200,118 @@ Ship:Destroy( false ) -- Don't generate an event upon destruction.
</div>
</div>
</div>
</div>
<div class="w3-card-2 w3-padding-small w3-margin-top">
<div class="w3-theme-l2">
<h2><a id="#(STATIC).FindAllByMatching" ><strong>STATIC:FindAllByMatching(Pattern)</strong></a></h2>
</div>
<p>Find all STATIC objects matching using patterns.</p>
<p>Note that this is <strong>a lot</strong> slower than <code>:FindByName()</code>!</p>
<div id= "#Functions##FindAllByMatching" class="w3-show w3-white">
<div class="w3-container w3-white" id="functiontype">
<h2><strong>Defined in:</strong></h2>
<div class="w3-margin-left">
<p>STATIC</p>
</div>
<h2><strong>Parameter:</strong></h2>
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
<div class="w3-half">
<p>
#string
<strong><strong>Pattern</strong></strong>
</p>
</div>
<div class="w3-half">
<p>The pattern to look for. Refer to <a href="http://www.easyuo.com/openeuo/wiki/index.php/Lua_Patterns_and_Captures_(Regular_Expressions)">LUA patterns</a> for regular expressions in LUA.</p>
</div>
</div>
<h2><strong>Return value:</strong></h2>
<div class="w3-row w3-border-bottom w3-margin-left">
<div class="w3-half">
<p>#table:</p>
</div>
<div class="w3-half">
<p>Groups Table of matching #STATIC objects found</p>
</div>
</div>
<h2><strong>Usage:</strong></h2>
<pre class="example"><code> -- Find all static with a partial static name
local grptable = STATIC:FindAllByMatching( "Apple" )
-- will return all statics with "Apple" in the name
-- using a pattern
local grp = STATIC:FindAllByMatching( ".%d.%d$" )
-- will return the all statics found ending in "-1-1" to "-9-9", but not e.g. "-10-1" or "-1-10"</code></pre>
</div>
</div>
</div>
<div class="w3-card-2 w3-padding-small w3-margin-top">
<div class="w3-theme-l2">
<h2><a id="#(STATIC).FindByMatching" ><strong>STATIC:FindByMatching(Pattern)</strong></a></h2>
</div>
<p>Find the first(!) STATIC matching using patterns.</p>
<p>Note that this is <strong>a lot</strong> slower than <code>:FindByName()</code>!</p>
<div id= "#Functions##FindByMatching" class="w3-show w3-white">
<div class="w3-container w3-white" id="functiontype">
<h2><strong>Defined in:</strong></h2>
<div class="w3-margin-left">
<p>STATIC</p>
</div>
<h2><strong>Parameter:</strong></h2>
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
<div class="w3-half">
<p>
#string
<strong><strong>Pattern</strong></strong>
</p>
</div>
<div class="w3-half">
<p>The pattern to look for. Refer to <a href="http://www.easyuo.com/openeuo/wiki/index.php/Lua_Patterns_and_Captures_(Regular_Expressions)">LUA patterns</a> for regular expressions in LUA.</p>
</div>
</div>
<h2><strong>Return value:</strong></h2>
<div class="w3-row w3-border-bottom w3-margin-left">
<div class="w3-half">
<p><a href="##(STATIC)">#STATIC</a>:</p>
</div>
<div class="w3-half">
<p>The STATIC.</p>
</div>
</div>
<h2><strong>Usage:</strong></h2>
<pre class="example"><code> -- Find a static with a partial static name
local grp = STATIC:FindByMatching( "Apple" )
-- will return e.g. a static named "Apple-1-1"
-- using a pattern
local grp = STATIC:FindByMatching( ".%d.%d$" )
-- will return the first static found ending in "-1-1" to "-9-9", but not e.g. "-10-1"</code></pre>
</div>
</div>
</div>
@@ -3414,7 +3538,7 @@ Ship:Destroy( false ) -- Don't generate an event upon destruction.
<h2><a id="#(STATIC).ReSpawn" ><strong>STATIC:ReSpawn(CountryID, Delay)</strong></a></h2>
</div>
<p>Respawn the <a href="Wrapper.Unit.html">Wrapper.Unit</a> at the same location with the same properties.</p>
<p>Respawn the <a href="Wrapper.Static.html">Wrapper.Static</a> at the same location with the same properties.</p>
<p>This is useful to respawn a cargo after it has been destroyed.</p>