1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 09:05:19 +02:00

Create framework for getting rid of global definitions of node/tool/item/whatever types

This commit is contained in:
Perttu Ahola
2011-11-14 00:19:48 +02:00
parent 5fc791ac9a
commit abceeee92f
60 changed files with 1017 additions and 743 deletions

View File

@@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef SERVER
#include <ITextSceneNode.h>
#endif
#include "main.h" // For g_settings
#include "settings.h"
#include "mapnode_contentfeatures.h"
@@ -128,7 +129,7 @@ void Player::serialize(std::ostream &os)
inventory.serialize(os);
}
void Player::deSerialize(std::istream &is)
void Player::deSerialize(std::istream &is, IGameDef *gamedef)
{
Settings args;
@@ -162,7 +163,7 @@ void Player::deSerialize(std::istream &is)
hp = 20;
}
inventory.deSerialize(is);
inventory.deSerialize(is, gamedef);
}
/*