Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
MapReader.cpp File Reference
#include "precompiled.h"
#include "MapReader.h"
#include "graphics/Camera.h"
#include "graphics/Color.h"
#include "graphics/Entity.h"
#include "graphics/GameView.h"
#include "graphics/MapGenerator.h"
#include "graphics/MapIO.h"
#include "graphics/MiniPatch.h"
#include "graphics/Patch.h"
#include "graphics/Terrain.h"
#include "graphics/TerrainTextureEntry.h"
#include "graphics/TerrainTextureManager.h"
#include "lib/alignment.h"
#include "lib/code_annotation.h"
#include "lib/debug.h"
#include "lib/path.h"
#include "lib/timer.h"
#include "lib/utf8.h"
#include "maths/Fixed.h"
#include "maths/FixedVector3D.h"
#include "maths/MathUtil.h"
#include "maths/Matrix3D.h"
#include "maths/NUSpline.h"
#include "ps/CLogger.h"
#include "ps/Filesystem.h"
#include "ps/Future.h"
#include "ps/Loader.h"
#include "ps/Profiler2.h"
#include "ps/TaskManager.h"
#include "ps/World.h"
#include "ps/XMB/XMBData.h"
#include "ps/XML/Xeromyces.h"
#include "renderer/PostprocManager.h"
#include "renderer/SkyManager.h"
#include "renderer/WaterManager.h"
#include "scriptinterface/JSON.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/Context.h"
#include "scriptinterface/Interface.h"
#include "scriptinterface/Request.h"
#include "scriptinterface/StructuredClone.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpCinemaManager.h"
#include "simulation2/components/ICmpGarrisonHolder.h"
#include "simulation2/components/ICmpObstruction.h"
#include "simulation2/components/ICmpOwnership.h"
#include "simulation2/components/ICmpPlayer.h"
#include "simulation2/components/ICmpPlayerManager.h"
#include "simulation2/components/ICmpPosition.h"
#include "simulation2/components/ICmpTerrain.h"
#include "simulation2/components/ICmpTurretHolder.h"
#include "simulation2/components/ICmpVisual.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/helpers/CinemaPath.h"
#include "simulation2/helpers/Position.h"
#include "simulation2/system/CmpPtr.h"
#include <algorithm>
#include <atomic>
#include <functional>
#include <js/PropertyAndElement.h>
#include <numeric>
#include <ranges>
#include <string>
#include <string_view>
#include <utility>

Classes

class  CXMLReader
 
struct  ParseEntitiesState
 

Macros

#define EL(x)   int el_##x = xmb_file.GetElementID(#x)
 
#define AT(x)   int at_##x = xmb_file.GetAttributeID(#x)
 
#define EL(x)   el_##x = xmb_file.GetElementID(#x)
 
#define AT(x)   at_##x = xmb_file.GetAttributeID(#x)
 
#define AT(x)   int at_##x = xmb_file.GetAttributeID(#x)
 
#define EL(x)   int el_##x = xmb_file.GetElementID(#x)
 
#define AT(x)   int at_##x = xmb_file.GetAttributeID(#x)
 
#define READ_COLOR(el, out)
 
#define READ_FLOAT(el, out)
 
#define EL(x)   int el_##x = xmb_file.GetElementID(#x)
 
#define AT(x)   int at_##x = xmb_file.GetAttributeID(#x)
 
#define EL(x)   int el_##x = xmb_file.GetElementID(#x)
 
#define AT(x)   int at_##x = xmb_file.GetAttributeID(#x)
 

Functions

bool IsQuitRequested ()
 
void ThrowMapGenerationError ()
 

Variables

constexpr int MAP_GENERATION_CONTEXT_SIZE {96 * MiB}
 

Macro Definition Documentation

◆ AT [1/6]

#define AT (   x)    int at_##x = xmb_file.GetAttributeID(#x)

◆ AT [2/6]

#define AT (   x)    at_##x = xmb_file.GetAttributeID(#x)

◆ AT [3/6]

#define AT (   x)    int at_##x = xmb_file.GetAttributeID(#x)

◆ AT [4/6]

#define AT (   x)    int at_##x = xmb_file.GetAttributeID(#x)

◆ AT [5/6]

#define AT (   x)    int at_##x = xmb_file.GetAttributeID(#x)

◆ AT [6/6]

#define AT (   x)    int at_##x = xmb_file.GetAttributeID(#x)

◆ EL [1/5]

#define EL (   x)    int el_##x = xmb_file.GetElementID(#x)

◆ EL [2/5]

#define EL (   x)    el_##x = xmb_file.GetElementID(#x)

◆ EL [3/5]

#define EL (   x)    int el_##x = xmb_file.GetElementID(#x)

◆ EL [4/5]

#define EL (   x)    int el_##x = xmb_file.GetElementID(#x)

◆ EL [5/5]

#define EL (   x)    int el_##x = xmb_file.GetElementID(#x)

◆ READ_COLOR

#define READ_COLOR (   el,
  out 
)
Value:
else if (water_element_name == el) \
{ \
XMBAttributeList colorAttrs = waterelement.GetAttributes(); \
out = CColor( \
colorAttrs.GetNamedItem(at_r).ToFloat(), \
colorAttrs.GetNamedItem(at_g).ToFloat(), \
colorAttrs.GetNamedItem(at_b).ToFloat(), \
1.f); \
}
Definition: Color.h:46

◆ READ_FLOAT

#define READ_FLOAT (   el,
  out 
)
Value:
else if (water_element_name == el) \
{ \
out = waterelement.GetText().ToFloat(); \
} \

Function Documentation

◆ IsQuitRequested()

bool IsQuitRequested ( )

◆ ThrowMapGenerationError()

void ThrowMapGenerationError ( )

Variable Documentation

◆ MAP_GENERATION_CONTEXT_SIZE

constexpr int MAP_GENERATION_CONTEXT_SIZE {96 * MiB}
constexpr