Значение#

infolibrarytypelookup: Тип атрибута X4: базовый тип, ограничения и варианты значений из схемы.

Тип XSD ограничивает XML, а не объявляет результат Lua или тип полезной нагрузки event.param. Прохождение схемы не доказывает игровой эффект.

Структура схемы#

libraries/common.xsd

Свойство Значение
Конструкция restriction
Базовый тип xs:string
Ограничение Значение
enumeration shiptypes_xl
enumeration shiptypes_l
enumeration shiptypes_m
enumeration shiptypes_s
enumeration shiptypes_xs
enumeration stationtypes
enumeration moduletypes_production
enumeration moduletypes_build
enumeration moduletypes_storage
enumeration moduletypes_habitation
enumeration moduletypes_defence
enumeration moduletypes_communication
enumeration moduletypes_dock
enumeration moduletypes_pier
enumeration moduletypes_other
enumeration moduletypes_processing
enumeration moduletypes_venture
enumeration moduletypes_welfare
enumeration weapons_lasers
enumeration weapons_missilelaunchers
enumeration weapons_turrets
enumeration weapons_missileturrets
enumeration shieldgentypes
enumeration enginetypes
enumeration thrustertypes
enumeration missiletypes
enumeration marines
enumeration unique_npcs
enumeration wares
enumeration productionmethods
enumeration researchmethods
enumeration researchables
enumeration inventory_wares
enumeration races
enumeration factions
enumeration licences
enumeration entitytypes
enumeration equipmentmods
enumeration paintmods
enumeration clothingmods
enumeration software
enumeration bombs
enumeration lasertowers
enumeration mines
enumeration navbeacons
enumeration resourceprobes
enumeration satellites
enumeration timeline
enumeration audiologs

restriction уточняет базовый тип; union разрешает один из вариантов; list описывает элементы, разделённые пробелами. Значения enumeration одного ограничения являются альтернативами. pattern использует регулярные выражения XML Schema, а не Lua или JavaScript. Ограничения базового типа продолжают действовать.

Пример и результат#

Примеры в контексте находятся в связанных карточках атрибутов ниже. По одному имени типа нельзя составить универсальный исполняемый пример.

Где используется#

Элемент Атрибут Схема
add_encyclopedia_entry type libraries/common.xsd

Все типы схем · Типы значений Lua / MD