Skip to content

Commit

Permalink
Deployed 98ca19f with MkDocs version: 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Jun 24, 2024
1 parent 9e0daa2 commit c6d4ddc
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 81 deletions.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

4 changes: 2 additions & 2 deletions engine/event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@


<h1 id="event">Event</h1>
<p>An event is a <a href="/tutorials/advanced_features/#function-objects">function object</a> that is tagged <em>"event"</em>. Events are used to run code when triggered.</p>
<p>An event is a <a href="/tutorials/advanced_features/#function-objects">function object</a> with zero parameters and no return value that is tagged <em>"event"</em>. Events are used to run code when triggered.</p>
<p>Events let you seamlessly connect <a href="/engine/entity">entities</a> and write cause and effect relationships. Suppose you have an on/off switch in a level. Whenever that switch is pressed by the player, you want something to happen: raise the water level, open a door, make it rain, teleport the player, and so on. Events are important because they let you decouple the source of the happening (the pressing of the switch) from the results that are experienced (e.g., the raising of the water).</p>
<p>Events let you reuse your entities in multiple ways and for multiple purposes. You may design an entity and make it trigger an event, but you do not need to specify in advance what the event actually is. Rather, the concrete event (what must happen) will be configured in your <a href="/engine/level/#setup">level setup</a>.</p>
<p>There are multiple types of events. In practice, you'll use specialized events such as <a href="/engine/entityevent">EntityEvent</a> and <a href="/engine/functionevent">FunctionEvent</a> when configuring your entities. <em>Event</em> is an empty event that does nothing when triggered, but it should be used when designing your entities, as in the example below.</p>
Expand Down Expand Up @@ -1865,7 +1865,7 @@ <h4 id="eventsevent">Events.Event</h4>
<h2 id="functions">Functions</h2>
<h4 id="call">call</h4>
<p><code>call()</code></p>
<p>Triggers the event. All event types implement this function.</p>
<p>Triggers the event. All event types implement this function. It takes no arguments and it returns no value other than <code>null</code>.</p>


</article>
Expand Down
4 changes: 2 additions & 2 deletions js/analytics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window.addEventListener('load', function() {
(function() {
const script = document.createElement('script');

script.addEventListener('error', function(e) {
Expand All @@ -11,4 +11,4 @@ window.addEventListener('load', function() {
script.src = 'https://gc.zgo.at/count.js';

document.head.appendChild(script);
});
})();
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit c6d4ddc

Please sign in to comment.