aboutsummaryrefslogtreecommitdiff
path: root/doc/mkdocs
diff options
context:
space:
mode:
authorWuzzy <Wuzzy2@mail.ru>2021-03-28 21:55:56 +0200
committersfan5 <sfan5@live.de>2021-03-29 19:56:20 +0200
commit7c24a9ebef5c92bbdb930df6119276b74737fc76 (patch)
treef632ddbc66eae3fd8bf69c1a4519100d0e3273ce /doc/mkdocs
parent8d89f5f0cc1db47542bd355babad06b6bda54f51 (diff)
Update CONTRIBUTING info on translating builtin
Diffstat (limited to 'doc/mkdocs')
0 files changed, 0 insertions, 0 deletions
/a>
/*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of 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 NODEMETADATA_HEADER
#define NODEMETADATA_HEADER

#include "irr_v3d.h"
#include <iostream>
#include <vector>
#include "util/string.h"

/*
	NodeMetadata stores arbitary amounts of data for special blocks.
	Used for furnaces, chests and signs.

	There are two interaction methods: inventory menu and text input.
	Only one can be used for a single metadata, thus only inventory OR
	text input should exist in a metadata.
*/

class Inventory;
class IItemDefManager;

class NodeMetadata
{
public:
	NodeMetadata(IItemDefManager *item_def_mgr);
	~NodeMetadata();

	void serialize(std::ostream &os) const;
	void deSerialize(std::istream &is);

	void clear();

	// Generic key/value store