Resources.xml

Aus Invertika Wiki

Wechseln zu: Navigation, Suche

In der resources.xml Datei sind die verfügbaren Updates verzeichnet. Eine Datei könnte z.B. so aussehen:

<updates>
 <update type="data" file="sounds-3795.zip" hash="890b723c"/>
 <update type="data" file="update-92f5898-5e3b3ca.zip" hash="c5a98a9e"/>
 <update type="data" file="tiles-e521087.zip" hash="e5b9af1f"/>
 <update type="data" file="sprites-548aa36.zip" hash="42d0aeea"/>
 <update type="data" file="update-548aa36..ac86ea6.zip" hash="941db6ae"/>
 <update type="data" file="particles-ac86ea6.zip" hash="f9f3248d"/>
 <update type="data" file="update-ac86ea6..75ac8ab.zip" hash="2b24cf6f"/>
 <update type="data" file="update-75ac8ab..6b01565.zip" hash="7026fab8"/>
 <update type="data" file="items-0df921c.zip" hash="2f2908b3"/>
 <update type="data" file="images-0df921c.zip" hash="33ad0af9"/>
 <update type="data" file="database-0df921c.zip" hash="a672982e"/>
 <update type="data" file="maps-0df921c.zip" hash="b3bbc79c"/>
 <update type="data" file="database-db36251.zip" hash="d912d42f"/>
 <update type="data" file="sfx-db36251.zip" hash="a19498e2"/>
 <update type="data" file="sprites-db36251.zip" hash="70bf3914"/>
 <update type="data" file="update-0df921c..db36251.zip" hash="e117f3c7"/>
 <update type="data" file="maps-db36251.zip" hash="e228efb4"/>
 <update type="music" required="no" file="music-af9f8a2a.zip" hash="21dbb805" desciption="Music data v01"/>
</updates>

Dabei kann es in jedem Update Tag folgende Typen geben:

Parametername Benötigt Standardwert Beschreibung
type NEIN Typ der Daten im Archiv (zur Zeit wird nur "music" interpretiert)
file JA Name der herunterzuladenden Datei
hash JA Adler32 Checksumme der Datei
required JA yes Gibt an ob die Datei benötigt wird
description NEIN Beschreibung was das Archiv enthält

Weblinks