update// added ChatDataStore and SietchDataStore with factory-pattern

This commit is contained in:
Strider
2020-05-08 20:01:57 +02:00
parent 2e8b46c863
commit d0562d2c65
4 changed files with 33 additions and 28 deletions

View File

@@ -6,16 +6,19 @@
class DataStore
{
public:
static SietchDataStore* getSietchDataStore()
{
return SietchDataStore::getInstance();
}
public:
static SietchDataStore* getSietchDataStore();
static ChatDataStore* getChatDataStore();
};
static ChatDataStore* getChatDataStore()
{
return ChatDataStore::getInstance();
}
SietchDataStore* DataStore::getSietchDataStore()
{
return SietchDataStore::getInstance();
}
ChatDataStore* DataStore::getChatDataStore()
{
return ChatDataStore::getInstance();
}
#endif