Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/TerrainProperties.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | private: | ||||
float m_TextureSize; | float m_TextureSize; | ||||
// All terrain type groups we're a member of | // All terrain type groups we're a member of | ||||
GroupVector m_Groups; | GroupVector m_Groups; | ||||
public: | public: | ||||
CTerrainProperties(CTerrainPropertiesPtr parent); | CTerrainProperties(CTerrainPropertiesPtr parent); | ||||
// Create a new object and load the XML file specified. Returns NULL upon | // Create a new object and load the XML file specified. Returns nullptr upon | ||||
// failure | // failure | ||||
// The parent pointer may be NULL, for the "root" terrainproperties object. | // The parent pointer may be nullptr, for the "root" terrainproperties object. | ||||
static CTerrainPropertiesPtr FromXML(const CTerrainPropertiesPtr& parent, const VfsPath& pathname); | static CTerrainPropertiesPtr FromXML(const CTerrainPropertiesPtr& parent, const VfsPath& pathname); | ||||
void LoadXml(XMBElement node, CXeromyces *pFile, const VfsPath& pathname); | void LoadXml(XMBElement node, CXeromyces *pFile, const VfsPath& pathname); | ||||
// Save the object to an XML file. Implement when needed! ;-) | // Save the object to an XML file. Implement when needed! ;-) | ||||
// bool WriteXML(const CStr& path); | // bool WriteXML(const CStr& path); | ||||
inline CTerrainPropertiesPtr GetParent() const | inline CTerrainPropertiesPtr GetParent() const | ||||
Show All 35 Lines |
Wildfire Games · Phabricator