Experimenting with SQL
This commit is contained in:
@@ -40,4 +40,8 @@ std::string CharacterData::GetHandle() {
|
||||
|
||||
std::string CharacterData::GetAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
Inventory* CharacterData::GetInventory() {
|
||||
return &inventory;
|
||||
}
|
||||
@@ -24,6 +24,7 @@
|
||||
//components
|
||||
#include "character_defines.hpp"
|
||||
#include "entity.hpp"
|
||||
#include "inventory.hpp"
|
||||
|
||||
//std namespace
|
||||
#include <string>
|
||||
@@ -38,6 +39,7 @@ public:
|
||||
int GetOwner();
|
||||
std::string GetHandle();
|
||||
std::string GetAvatar();
|
||||
Inventory* GetInventory();
|
||||
|
||||
private:
|
||||
friend class CharacterManager;
|
||||
@@ -45,4 +47,5 @@ private:
|
||||
int owner = -1;
|
||||
std::string handle;
|
||||
std::string avatar;
|
||||
Inventory inventory;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#config
|
||||
INCLUDES+=. .. ../combat ../creatures ../entities ../monsters ../rooms ../triggers ../../common/gameplay ../../common/map ../../common/network ../../common/network/packet_types ../../common/utilities
|
||||
INCLUDES+=. .. ../combat ../creatures ../entities ../monsters ../inventory ../rooms ../triggers ../../common/gameplay ../../common/map ../../common/network ../../common/network/packet_types ../../common/utilities
|
||||
LIBS+=
|
||||
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user