Модуль:Harvest

Материал из Path of Exile Wiki
Перейти к: навигация, поиск
Документация модуля[просмотр] [править] [история] [очистить]

--
-- Module for harvest templates
--

local m_cargo = require('Module:Cargo')
local m_util = require('Module:Util')
local getArgs = require('Module:Arguments').getArgs

local p = {}

-- ----------------------------------------------------------------------------
-- Strings
-- ----------------------------------------------------------------------------

local i18n = {
}

-- ----------------------------------------------------------------------------
-- Helper functions and globals
-- ----------------------------------------------------------------------------

-- ----------------------------------------------------------------------------
-- Cargo tables
-- ----------------------------------------------------------------------------
local tables = {}

tables.harvest_craft_options = {
    table = 'harvest_craft_options',
    order = {'id'},
    fields = {
        id = {
            field = 'id',
            type = 'String',
        },
        text = {
            field = 'text',
            type = 'Text',
        },
        harvest_object = {
            field = 'harvest_object',
            type = 'String',
        },
        tier = {
            field = 'tier',
            type = 'Integer',
        }
    },
}
-- ----------------------------------------------------------------------------
-- Page functions
-- ----------------------------------------------------------------------------

local p = {}

p.table_harvest_craft_options = m_cargo.declare_factory{data=tables.harvest_craft_options}

p.store_data = m_cargo.store_from_lua{tables=tables, module='Harvest'}

-- ----------------------------------------------------------------------------
-- End
-- ----------------------------------------------------------------------------

return p