aboutsummaryrefslogtreecommitdiff
path: root/models/blender/locomotive.blend
diff options
context:
space:
mode:
Diffstat (limited to 'models/blender/locomotive.blend')
0 files changed, 0 insertions, 0 deletions
f the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef NAMEIDMAPPING_HEADER #define NAMEIDMAPPING_HEADER #include <string> #include <iostream> #include <set> #include <map> #include "irrlichttypes_bloated.h" class NameIdMapping { public: void serialize(std::ostream &os) const; void deSerialize(std::istream &is); void clear(){ m_id_to_name.clear(); m_name_to_id.clear(); } void set(u16 id, const std::string &name){ m_id_to_name[id] = name; m_name_to_id[name] = id; } void removeId(u16 id){ std::string name; bool found = getName(id, name); if(!found) return; m_id_to_name.erase(id); m_name_to_id.erase(name); }