Skip to content

Commit

Permalink
update slate[no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 27, 2023
1 parent 60ff1bd commit 05a9609
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/game_data/spel2.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,12 @@
<li>
<a href="#grow_vines" class="toc-h3 toc-link" data-title="grow_vines">grow_vines</a>
</li>
<li>
<a href="#http_get" class="toc-h3 toc-link" data-title="http_get">http_get</a>
</li>
<li>
<a href="#http_get_async" class="toc-h3 toc-link" data-title="http_get_async">http_get_async</a>
</li>
<li>
<a href="#import" class="toc-h3 toc-link" data-title="import">import</a>
</li>
Expand Down Expand Up @@ -4601,6 +4607,19 @@ <h3 id='grow_vines'>grow_vines</h3>
</blockquote>
<h4 id='nil-grow_vines-LAYER-l-int-max_lengh'>nil grow_vines(<a href="#LAYER">LAYER</a> l, int max_lengh)</h4><h4 id='nil-grow_vines-LAYER-l-int-max_lengh-AABB-area-bool-destroy_broken'>nil grow_vines(<a href="#LAYER">LAYER</a> l, int max_lengh, <a href="#AABB">AABB</a> area, bool destroy_broken)</h4>
<p>Grow vines from <code>GROWABLE_VINE</code> and <code>VINE_TREE_TOP</code> entities in a level, <code>area</code> default is whole level, <code>destroy_broken</code> default is false</p>
<h3 id='http_get'>http_get</h3>
<blockquote>
<p>Search script examples for <a href="https://github.com/spelunky-fyi/overlunky/search?l=Lua&amp;q=http_get">http_get</a></p>
</blockquote>
<h4 id='optional-lt-string-gt-http_get-string-url'>optional&lt;string&gt; http_get(string url)</h4>
<p>Send a synchronous HTTP GET request and return response as a string or nil on an error</p>
<h3 id='http_get_async'>http_get_async</h3>
<blockquote>
<p>Search script examples for <a href="https://github.com/spelunky-fyi/overlunky/search?l=Lua&amp;q=http_get_async">http_get_async</a></p>
</blockquote>
<h4 id='HttpRequest-http_get_async-string-url-function-on_data'>HttpRequest http_get_async(string url, function on_data)</h4>
<p>Send an asynchronous HTTP GET request and run the callback when done. If there is an error, response will be nil and vice versa.
The callback signature is nil on_data(string response, string error)</p>
<h3 id='import'>import</h3>
<blockquote>
<p>Search script examples for <a href="https://github.com/spelunky-fyi/overlunky/search?l=Lua&amp;q=import">import</a></p>
Expand Down
19 changes: 19 additions & 0 deletions docs/light.html
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,12 @@
<li>
<a href="#grow_vines" class="toc-h3 toc-link" data-title="grow_vines">grow_vines</a>
</li>
<li>
<a href="#http_get" class="toc-h3 toc-link" data-title="http_get">http_get</a>
</li>
<li>
<a href="#http_get_async" class="toc-h3 toc-link" data-title="http_get_async">http_get_async</a>
</li>
<li>
<a href="#import" class="toc-h3 toc-link" data-title="import">import</a>
</li>
Expand Down Expand Up @@ -4601,6 +4607,19 @@ <h3 id='grow_vines'>grow_vines</h3>
</blockquote>
<h4 id='nil-grow_vines-LAYER-l-int-max_lengh'>nil grow_vines(<a href="#LAYER">LAYER</a> l, int max_lengh)</h4><h4 id='nil-grow_vines-LAYER-l-int-max_lengh-AABB-area-bool-destroy_broken'>nil grow_vines(<a href="#LAYER">LAYER</a> l, int max_lengh, <a href="#AABB">AABB</a> area, bool destroy_broken)</h4>
<p>Grow vines from <code>GROWABLE_VINE</code> and <code>VINE_TREE_TOP</code> entities in a level, <code>area</code> default is whole level, <code>destroy_broken</code> default is false</p>
<h3 id='http_get'>http_get</h3>
<blockquote>
<p>Search script examples for <a href="https://github.com/spelunky-fyi/overlunky/search?l=Lua&amp;q=http_get">http_get</a></p>
</blockquote>
<h4 id='optional-lt-string-gt-http_get-string-url'>optional&lt;string&gt; http_get(string url)</h4>
<p>Send a synchronous HTTP GET request and return response as a string or nil on an error</p>
<h3 id='http_get_async'>http_get_async</h3>
<blockquote>
<p>Search script examples for <a href="https://github.com/spelunky-fyi/overlunky/search?l=Lua&amp;q=http_get_async">http_get_async</a></p>
</blockquote>
<h4 id='HttpRequest-http_get_async-string-url-function-on_data'>HttpRequest http_get_async(string url, function on_data)</h4>
<p>Send an asynchronous HTTP GET request and run the callback when done. If there is an error, response will be nil and vice versa.
The callback signature is nil on_data(string response, string error)</p>
<h3 id='import'>import</h3>
<blockquote>
<p>Search script examples for <a href="https://github.com/spelunky-fyi/overlunky/search?l=Lua&amp;q=import">import</a></p>
Expand Down
19 changes: 19 additions & 0 deletions docs/src/includes/_globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,25 @@ Grow pole from `GROWABLE_CLIMBING_POLE` entities in a level, `area` default is w

Grow vines from `GROWABLE_VINE` and `VINE_TREE_TOP` entities in a level, `area` default is whole level, `destroy_broken` default is false

### http_get


> Search script examples for [http_get](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=http_get)
#### optional&lt;string&gt; http_get(string url)

Send a synchronous HTTP GET request and return response as a string or nil on an error

### http_get_async


> Search script examples for [http_get_async](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=http_get_async)
#### HttpRequest http_get_async(string url, function on_data)

Send an asynchronous HTTP GET request and run the callback when done. If there is an error, response will be nil and vice versa.
The callback signature is nil on_data(string response, string error)

### import


Expand Down

0 comments on commit 05a9609

Please sign in to comment.