Module:WorkshopsData2: Difference between revisions
From Against the Storm Official Wiki
m (Testing) Tag: Replaced |
m (renamed the return value to be clearer) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
-- Initialize a new instance of the BaseDataModel, configured to load the workshops data | |||
local BaseDataModel = require("Module:BaseDataModel") | local BaseDataModel = require("Module:BaseDataModel") | ||
local DATA_FILE = "Module:WorkshopsData/Workshops.json" | local DATA_FILE = "Module:WorkshopsData/Workshops.json" | ||
local workshopsDataModel = BaseDataModel.new(DATA_FILE) | |||
return | -- Return the instance for workshops data, not this module itself! | ||
return workshopsDataModel |
Latest revision as of 15:15, 25 October 2024
Documentation for this module may be created at Module:WorkshopsData2/doc
---@module WorkshopsData local WorkshopsData = {} -- Initialize a new instance of the BaseDataModel, configured to load the workshops data local BaseDataModel = require("Module:BaseDataModel") local DATA_FILE = "Module:WorkshopsData/Workshops.json" local workshopsDataModel = BaseDataModel.new(DATA_FILE) -- Return the instance for workshops data, not this module itself! return workshopsDataModel