<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.heroesofhammerwatch.com/index.php?action=history&amp;feed=atom&amp;title=WorldScript_Class</id>
	<title>WorldScript Class - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.heroesofhammerwatch.com/index.php?action=history&amp;feed=atom&amp;title=WorldScript_Class"/>
	<link rel="alternate" type="text/html" href="https://wiki.heroesofhammerwatch.com/index.php?title=WorldScript_Class&amp;action=history"/>
	<updated>2026-08-10T15:34:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.heroesofhammerwatch.com/index.php?title=WorldScript_Class&amp;diff=1938&amp;oldid=prev</id>
		<title>Miss at 12:22, 19 June 2019</title>
		<link rel="alternate" type="text/html" href="https://wiki.heroesofhammerwatch.com/index.php?title=WorldScript_Class&amp;diff=1938&amp;oldid=prev"/>
		<updated>2019-06-19T12:22:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:22, 19 June 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;SValue@ Save()&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;SValue@ Save()&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;void Load(SValue@ save)&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;void Load(SValue@ save)&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Remarks==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Worldscripts are only executable if they have a &amp;lt;code&amp;gt;ClientExecute&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;ServerExecute&amp;lt;/code&amp;gt; method. If neither of these methods exist, you can not target the worldscript to execute.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key hohmediawiki?h35303030a2ab-hiwrfuej_:diff::1.12:old-1937:rev-1938 --&gt;
&lt;/table&gt;</summary>
		<author><name>Miss</name></author>
	</entry>
	<entry>
		<id>https://wiki.heroesofhammerwatch.com/index.php?title=WorldScript_Class&amp;diff=1937&amp;oldid=prev</id>
		<title>Miss: Created page with &quot;Worldscript classes are defined using the &lt;code&gt;[WorldScript]&lt;/code&gt; metadata:   [WorldScript color=&quot;176 196 222&quot; icon=&quot;system/icons.png;416;128;32;32&quot;]  class ScriptLink  Pos...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.heroesofhammerwatch.com/index.php?title=WorldScript_Class&amp;diff=1937&amp;oldid=prev"/>
		<updated>2019-06-19T12:20:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Worldscript classes are defined using the &amp;lt;code&amp;gt;[WorldScript]&amp;lt;/code&amp;gt; metadata:   [WorldScript color=&amp;quot;176 196 222&amp;quot; icon=&amp;quot;system/icons.png;416;128;32;32&amp;quot;]  class ScriptLink  Pos...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Worldscript classes are defined using the &amp;lt;code&amp;gt;[WorldScript]&amp;lt;/code&amp;gt; metadata:&lt;br /&gt;
&lt;br /&gt;
 [WorldScript color=&amp;quot;176 196 222&amp;quot; icon=&amp;quot;system/icons.png;416;128;32;32&amp;quot;]&lt;br /&gt;
 class ScriptLink&lt;br /&gt;
&lt;br /&gt;
Possible options for the metadata are:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; specifies the color that the editor will show this script as when placed in a level. This can be a hexadecimal color (if it starts with &amp;lt;code&amp;gt;#&amp;lt;/code&amp;gt;) or an RGB pair.&lt;br /&gt;
* &amp;lt;code&amp;gt;icon&amp;lt;/code&amp;gt; contains the texture and coordinates of where the worldscript icon is that should be shown in editor, in the format &amp;lt;code&amp;gt;filename;x;y;width;height&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;alias&amp;lt;/code&amp;gt; is an optional string that can be used as an alternative name for the script. This is useful when a class name has changed, so that it can still be loaded by level files that reference the script by its old name. You can specify multiple names here, separated by commas.&lt;br /&gt;
&lt;br /&gt;
==Methods called from engine==&lt;br /&gt;
The engine calls the following functions, if they exist:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;void Initialize()&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void Cleanup()&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void Update(int dt)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void PostUpdate(int dt)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;SValue@ ServerExecute()&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void ClientExecute(SValue@)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void OnEnabledChanged(bool enabled)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void DebugDraw(vec2, SpriteBatch&amp;amp;)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;SValue@ Save()&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;void Load(SValue@ save)&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Miss</name></author>
	</entry>
</feed>