Experimenting with SQL

This commit is contained in:
2016-04-22 18:14:07 +10:00
parent 754fb71850
commit ba295099f3
9 changed files with 186 additions and 14 deletions
+4
View File
@@ -40,4 +40,8 @@ std::string CharacterData::GetHandle() {
std::string CharacterData::GetAvatar() {
return avatar;
}
Inventory* CharacterData::GetInventory() {
return &inventory;
}
+3
View File
@@ -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 -1
View File
@@ -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))