public inheritance

This commit is contained in:
DanielProl1xy 2024-02-19 10:26:48 +03:00
parent 0e38698dae
commit 102ec6d865
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
class ContentLUT;
class ContentIndices;
class Inventory : Serializable {
class Inventory : public Serializable {
int64_t id;
std::vector<ItemStack> slots;
public:

View File

@ -33,7 +33,7 @@ struct PlayerInput {
bool flight;
};
class Player : Object, Serializable {
class Player : public Object, public Serializable {
float speed;
int chosenSlot;
glm::vec3 spawnpoint {};

View File

@ -26,7 +26,7 @@ public:
world_load_error(std::string message);
};
class World : Serializable {
class World : public Serializable {
std::string name;
uint64_t seed;
EngineSettings& settings;