<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/Against_the_Storm/index.php?action=history&amp;feed=atom&amp;title=Module%3AFarmFieldsData%2F</id>
	<title>Module:FarmFieldsData/ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/Against_the_Storm/index.php?action=history&amp;feed=atom&amp;title=Module%3AFarmFieldsData%2F"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Against_the_Storm/index.php?title=Module:FarmFieldsData/&amp;action=history"/>
	<updated>2026-10-18T23:23:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/Against_the_Storm/index.php?title=Module:FarmFieldsData/&amp;diff=9369&amp;oldid=prev</id>
		<title>76561197969631737: Created to be a new instance of BaseDataModel so we can show building boxes for these</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Against_the_Storm/index.php?title=Module:FarmFieldsData/&amp;diff=9369&amp;oldid=prev"/>
		<updated>2024-11-07T04:32:47Z</updated>

		<summary type="html">&lt;p&gt;Created to be a new instance of BaseDataModel so we can show building boxes for these&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;---@module FarmFieldsData.lua&lt;br /&gt;
---&lt;br /&gt;
---This module does not define an _actual_ derived class, but it creates an instance of one via prototyping patterns. Understand this file as a big procedure, top-to-bottom, rather than a class definition.&lt;br /&gt;
---&lt;br /&gt;
---Initializes a BaseDataModel with the data file associated with this module. Makes necessary modifications to the basic data, including schema and method overrides, to permit the exceptions associated with data in this model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Create instance&lt;br /&gt;
local BaseDataModel = require(&amp;quot;Module:BaseDataModel&amp;quot;)&lt;br /&gt;
local DATA_FILE = &amp;quot;Module:FarmFieldsData/Farmfields.json&amp;quot;&lt;br /&gt;
&lt;br /&gt;
---@type BaseDataModel&lt;br /&gt;
local fieldsDataModel = BaseDataModel.new(DATA_FILE)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Begin instance overrides&lt;br /&gt;
for _, building in pairs(fieldsDataModel.dataTable) do&lt;br /&gt;
    building[fieldsDataModel.schema.CATEGORY2] = &amp;quot;Farm&amp;quot;&lt;br /&gt;
    building[campsDataModel.schema.IS_PROVIDING_SERVICES] = false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--/** Function definitions follow. **/&lt;br /&gt;
--Collapse the regions in the IDE to see the procedure pick up with the assignments of these functions to override the associated member methods of BaseDataModel.&lt;br /&gt;
--region Public building interface&lt;br /&gt;
--no overrides!&lt;br /&gt;
--endregion&lt;br /&gt;
&lt;br /&gt;
--region Public building recipe query interface&lt;br /&gt;
--no overrides!&lt;br /&gt;
--endregion&lt;br /&gt;
&lt;br /&gt;
--region Public recipe data retrieval interface&lt;br /&gt;
--no overrides!&lt;br /&gt;
--endregion&lt;br /&gt;
--/** End Function definitions. Procedure resumes. **/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return fieldsDataModel&lt;/div&gt;</summary>
		<author><name>76561197969631737</name></author>
	</entry>
</feed>