<?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=ConfigItem</id>
	<title>ConfigItem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=ConfigItem"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=ConfigItem&amp;action=history"/>
	<updated>2026-04-22T01:53:44Z</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=ConfigItem&amp;diff=106&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:ConfigItemExampleCode}}  ==Constructor== {| class=&quot;wikitable&quot; !|function !|description |- |ConfigItem(string fileName) |opens that specific config files using a singleton. |- |}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- | |set(nil) |Can set any value of type number,string,boolean,Vec2,Vec3,Vec4,Matrix,table |- | |setBool(bool val) |sets the boolean, int, float and double value. |-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=ConfigItem&amp;diff=106&amp;oldid=prev"/>
		<updated>2025-07-05T14:21:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:ConfigItemExampleCode}}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot; !|function !|description |- |ConfigItem(string fileName) |opens that specific config files using a singleton. |- |}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- | |&lt;a href=&quot;/index.php?title=ConfigItem:set(nil)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ConfigItem:set(nil) (page does not exist)&quot;&gt;set&lt;/a&gt;(nil) |Can set any value of type number,string,boolean,Vec2,Vec3,Vec4,Matrix,table |- | |&lt;a href=&quot;/index.php?title=ConfigItem:setBool(bool_val)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ConfigItem:setBool(bool val) (page does not exist)&quot;&gt;setBool&lt;/a&gt;(bool val) |sets the boolean, int, float and double value. |-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:ConfigItemExampleCode}}&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;
|ConfigItem(string fileName)&lt;br /&gt;
|opens that specific config files using a singleton.&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;
|[[ConfigItem:set(nil)|set]](nil)&lt;br /&gt;
|Can set any value of type number,string,boolean,Vec2,Vec3,Vec4,Matrix,table&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setBool(bool val)|setBool]](bool val)&lt;br /&gt;
|sets the boolean, int, float and double value.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setInt(int val)|setInt]](int val)&lt;br /&gt;
|sets the boolean, int, float and double value.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setFloat(float val)|setFloat]](float val)&lt;br /&gt;
|sets the boolean, int, float and double value.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setDouble(double val)|setDouble]](double val)&lt;br /&gt;
|sets the boolean, int, float and double value.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setString(string str)|setString]](string str)&lt;br /&gt;
|sets string value of item.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setVec2(Vec2 vec)|setVec2]]([[Vec2]] vec)&lt;br /&gt;
|sets vec value of item.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setVec3(Vec3 vec)|setVec3]]([[Vec3]] vec)&lt;br /&gt;
|sets vec value of item.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setVec4(Vec4 vec)|setVec4]]([[Vec4]] vec)&lt;br /&gt;
|sets vec value of item.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setMatrix(Matrix mat)|setVec4]]([[Matrix]] mat)&lt;br /&gt;
|sets the matrix as value. This variable can&amp;#039;t be saved to file&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[ConfigItem:setTable(table tab)|setTable]]([[table]] tab)&lt;br /&gt;
|inserts a table that merges with current table values.&lt;br /&gt;
|-&lt;br /&gt;
|nil&lt;br /&gt;
|[[ConfigItem:get()|get]]()&lt;br /&gt;
|returns current value of types number,string,boolean,Vec2,Vec3,Vec4,Matrix,table&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[ConfigItem:getBool()|getBool]]()&lt;br /&gt;
|returns current boolean value.&lt;br /&gt;
|-&lt;br /&gt;
|int&lt;br /&gt;
|[[ConfigItem:getInt()|getInt]]()&lt;br /&gt;
|returns current int value.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[ConfigItem:getFloat()|getFloat]]()&lt;br /&gt;
|returns current float value.&lt;br /&gt;
|-&lt;br /&gt;
|double&lt;br /&gt;
|[[ConfigItem:getDouble()|getDouble]]()&lt;br /&gt;
|returns current double value.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[ConfigItem:getString()|getString]]()&lt;br /&gt;
|returns current string value.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2]]&lt;br /&gt;
|[[ConfigItem:getVec2()|getVec2]]()&lt;br /&gt;
|returns current Vec2 value.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec3]]&lt;br /&gt;
|[[ConfigItem:getVec3()|getVec3]]()&lt;br /&gt;
|returns current Vec3 value.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]&lt;br /&gt;
|[[ConfigItem:getVec4()|getVec4]]()&lt;br /&gt;
|returns current Vec4 value.&lt;br /&gt;
|-&lt;br /&gt;
|[[Matrix]]&lt;br /&gt;
|[[ConfigItem:getMatrix()|getMatrix]]()&lt;br /&gt;
|returns current Matrix. the matrix can&amp;#039;t be loaded from file&lt;br /&gt;
|-&lt;br /&gt;
|Table&lt;br /&gt;
|[[ConfigItem: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;
|[[ConfigItem]]&lt;br /&gt;
|[[ConfigItem:get(string name)|get]]([[string]] name)&lt;br /&gt;
|returns a configItem&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[ConfigItem:get(string name, bool val)|get]]([[string]] name,bool 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;
|[[ConfigItem: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;
|[[ConfigItem: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;
|[[ConfigItem: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;
|[[ConfigItem: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;
|[[ConfigItem: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;
|&lt;br /&gt;
|[[ConfigItem: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;
|[[ConfigItem: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;
|[[ConfigItem:isData()|isData]]()&lt;br /&gt;
|returns true if there is no children to item.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[ConfigItem: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;
|[[ConfigItem:getFirst()|getFirst]]()&lt;br /&gt;
|returns first element of its table&lt;br /&gt;
|-&lt;br /&gt;
|[[ConfigItem]]&lt;br /&gt;
|[[ConfigItem:getNext()|getNext]]()&lt;br /&gt;
|returns next element in the table&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[ConfigItem: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;
|[[ConfigItem: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>