<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Config</id>
	<title>Config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Config"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Config&amp;action=history"/>
	<updated>2026-04-22T00:34:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Config&amp;diff=161&amp;oldid=prev</id>
		<title>Anders: /* Functions */</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Config&amp;diff=161&amp;oldid=prev"/>
		<updated>2025-07-26T08:04:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Functions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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-GB&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 08:04, 26 July 2025&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-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|[[Config:get(string name)|get]]([[string]] name)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|[[Config:get(string name)|get]]([[string]] name)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|returns a configItem&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|returns a configItem&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;|[[ConfigItem]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;|[[Config:get(string name, bool val)|get]]([[string]] name,bool val)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;|returns a configItem. if item do not exist set default value to val&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|[[ConfigItem]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|[[ConfigItem]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-105:rev-161:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Config&amp;diff=105&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:ConfigExampleCode}}  ==Constructor== {| class=&quot;wikitable&quot; !|function !|description |- |Config(string configName) | |- |}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- | |save() |saves the config to file |- |ConfigItem |get(string name) |returns a configItem |- |ConfigItem |get(string name,double val) |returns a configItem. if item do not...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Config&amp;diff=105&amp;oldid=prev"/>
		<updated>2025-07-05T14:21:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:ConfigExampleCode}}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot; !|function !|description |- |Config(&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; configName) | |- |}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- | |&lt;a href=&quot;/index.php?title=Config:save()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Config:save() (page does not exist)&quot;&gt;save&lt;/a&gt;() |saves the config to file |- |&lt;a href=&quot;/index.php/ConfigItem&quot; title=&quot;ConfigItem&quot;&gt;ConfigItem&lt;/a&gt; |&lt;a href=&quot;/index.php?title=Config:get(string_name)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Config:get(string name) (page does not exist)&quot;&gt;get&lt;/a&gt;(&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; name) |returns a configItem |- |&lt;a href=&quot;/index.php/ConfigItem&quot; title=&quot;ConfigItem&quot;&gt;ConfigItem&lt;/a&gt; |&lt;a href=&quot;/index.php?title=Config:get(string_name,_double_val)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Config:get(string name, double val) (page does not exist)&quot;&gt;get&lt;/a&gt;(&lt;a href=&quot;/index.php/String&quot; title=&quot;String&quot;&gt;string&lt;/a&gt; name,double val) |returns a configItem. if item do not...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:ConfigExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|Config([[string]] configName)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Config:save()|save]]()&lt;br /&gt;
|saves the config to file&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:get(string name)|get]]([[string]] name)&lt;br /&gt;
|returns a configItem&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:get(string name, double val)|get]]([[string]] name,double val)&lt;br /&gt;
|returns a configItem. if item do not exist set default value to val&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:get(string name, string val)|get]]([[string]] name,string val)&lt;br /&gt;
|returns a configItem. if item do not exist set default value to val&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:get(string name, Vec2 val)|get]]([[string]] name,Vec2 val)&lt;br /&gt;
|returns a configItem. if item do not exist set default value to val&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:get(string name, Vec3 val)|get]]([[string]] name,Vec3 val)&lt;br /&gt;
|returns a configItem. if item do not exist set default value to val&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:get(string name, Vec4 val)|get]]([[string]] name,Vec4 val)&lt;br /&gt;
|returns a configItem. if item do not exist set default value to val&lt;br /&gt;
|-&lt;br /&gt;
|Table&lt;br /&gt;
|[[Config:getTable()|getTable]]()&lt;br /&gt;
|returns a complete table with all the children and there values. it will return an empty table if isData()==true.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Config:renameChild(string oldName,string newName)|renameChild]](string oldName,string newName)&lt;br /&gt;
|renames the item with the exakt name.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Config:remove(string name)|remove]](string name)&lt;br /&gt;
|removes the item with the exakt name.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Config:isData()|isData]]()&lt;br /&gt;
|returns false. because the first layer must be a table.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Config:exist(string name)|exist]](string name)&lt;br /&gt;
|returns true if there is a child with that exakt name.&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:getFirst()|getFirst]]()&lt;br /&gt;
|returns first element of its table&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[Config:getNext()|getNext]]()&lt;br /&gt;
|returns next element in the table&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[Config:getCurrentName()|getCurrentName]]()&lt;br /&gt;
|returns the name of the active element in the table&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Config:isEnd()|isEnd]]()&lt;br /&gt;
|returns true if this is the last element in queue&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>