feat: dynamic field labels, optionally overriding field names per species

This commit is contained in:
Lewis Wynne 2026-04-07 18:17:41 +01:00
parent a0060ca4bb
commit a2b904811a
21 changed files with 322 additions and 73 deletions

View file

@ -3,8 +3,19 @@
<xs:element name="species">
<xs:complexType>
<xs:sequence>
<xs:all>
<xs:element name="description" type="xs:string" minOccurs="0" />
<xs:element name="labels" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="label" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="for" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="languages" type="refList" />
<xs:element name="citizenships" type="refList" />
<xs:element name="subspecies" minOccurs="0">
@ -22,10 +33,9 @@
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:all>
<xs:attribute name="id" type="xs:string" use="required" />
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="subspeciesLabel" type="xs:string" use="required" />
</xs:complexType>
</xs:element>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="diona" name="Diona" subspeciesLabel="Subspecies">
<species id="diona" name="Diona">
<description>A mysterious plant-like species hailing from the depths of space. Dionae are comprised of cat-sized caterpillar-like creatures called nymphs, which form gestalt consciousnesses when two or more combine. Almost every aspect of the species is a mystery: their origins, behaviour, and functions. They are capable of great intellectual and biological feats, surviving primarily off the electromagnetic spectrum and biological matter.</description>
<languages>

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="human" name="Human" subspeciesLabel="Variant">
<species id="human" name="Human">
<labels>
<label for="subspecies">Variant</label>
</labels>
<description>Humans originated on Earth.</description>
<languages>

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="ipc" name="Integrated Positronic Chassis" subspeciesLabel="Frame">
<species id="ipc" name="Integrated Positronic Chassis">
<labels>
<label for="subspecies">Frame</label>
</labels>
<description>IPCs are synthetic chassis housing a positronic processing core. From skeletal baselines to humanlike shells, they serve in a variety of roles across the Orion Spur. Their legal status varies wildly between nations, ranging from full citizenship to being classified as property.</description>
<languages>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="skrell" name="Skrell" subspeciesLabel="Subspecies">
<species id="skrell" name="Skrell">
<description>Skrell are a species of amphibious bipeds, originating from the planet of Qerrbalak. With longer lifespans than most sophonts, combined with their earlier development of organized societies, skrell are the oldest spacefaring species in the Orion Spur.</description>
<languages>

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="tajara" name="Tajara" subspeciesLabel="Ethnicity">
<species id="tajara" name="Tajara">
<labels>
<label for="subspecies">Ethnicity</label>
</labels>
<description>The Tajara are a race of humanoids that possess markedly felinoid traits. Tajaran history and society is deeply entrenched in the conflict between its caste system and ruling governments.</description>
<languages>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="unathi" name="Unathi" subspeciesLabel="Subspecies">
<species id="unathi" name="Unathi">
<description>A heavily reptilian species, Unathi hail from the Uuosa-Eso system. A relatively recent addition to the galactic stage, they suffered immense turmoil after the cultural and economic disruption following first contact with humanity. With their homeworld of Moghes suffering catastrophic climate change from a nuclear war in the recent past, the Izweski Hegemony that rules the majority of the species struggles to find its place in the galaxy. They hold ideals of honesty, virtue, martial combat, and spirituality above all else.</description>
<languages>

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<species id="vaurca" name="Vaurca" subspeciesLabel="Type">
<species id="vaurca" name="Vaurca">
<labels>
<label for="subspecies">Type</label>
</labels>
<description>The Vaurca are an insectoid species with a complex caste-based society organised into Hives, each led by a Queen. They communicate primarily through a localised expression of their hivemind. Having arrived in the Orion Spur from deep space, they are one of the newest species to join the galactic stage, and their integration into existing societies remains an ongoing process.</description>
<languages>