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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user