#include <thread.hpp>
#include <vector2.hpp>
-/**
- * The background type enum.
- * Used to choose which set of background images should be used.
- */
-enum class WorldBGType : unsigned int {
- Forest = 0 /**< A forest theme. */
-};
-
/**
* The line structure.
* This structure is used to store the world's ground, stored in vertical
std::string toLeft, toRight; /**< File names of the worlds adjacent to this one. */
// Style variables
- WorldBGType style; /**< The style type of the world. */
std::string styleFolder; /**< The folder to get stylized textures from. */
- std::vector<std::string> sTexLoc; /**< File names of stylized textures for structures. */
// Music
std::string bgm; /**< The path to the BGM file. */
// style tag
if (tagName == "style") {
world.styleFolder = wxml->StrAttribute("folder");
-
- unsigned int styleNo;
- if (wxml->QueryUnsignedAttribute("background", &styleNo) != XML_NO_ERROR)
- UserError("XML Error: No background given in <style> in " + xmlPath);
-
- world.style = static_cast<WorldBGType>(styleNo);
world.bgm = wxml->StrAttribute("bgm");
std::vector<std::string> bgFiles;
<include file="entities.xml"/>
<World>
- <style background="0" bgm="assets/music/town.ogg" folder="assets/style/classic/">
+ <style bgm="assets/music/town.ogg" folder="assets/style/classic/">
<layer path="bg/bg.png"/>
<layer path="bg/bgFarMountain.png"/>
<layer path="bg/forestTileFar.png"/>
<?xml version="1.0"?>
<World>
- <style background="0" bgm="assets/music/embark.wav" folder="assets/style/classic/">
+ <style bgm="assets/music/embark.wav" folder="assets/style/classic/">
<layer path="bg/bg.png"/>
<layer path="bg/bgFarMountain.png"/>
<layer path="bg/forestTileFar.png"/>
<include file="entities.xml"/>
<IndoorWorld>
- <style background="0" bgm="assets/music/theme_jazz.wav" folder="assets/style/classic/">
+ <style bgm="assets/music/theme_jazz.wav" folder="assets/style/classic/">
<layer path="bg/bg.png"/>
<layer path="bg/bgFarMountain.png"/>
<layer path="bg/forestTileFar.png"/>