Add project files.

This commit is contained in:
k0t9i
2023-01-16 15:33:32 +04:00
parent 0f6fb75cff
commit 3c20df7683
130 changed files with 7756 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <map>
#include "ObjectRepositoryInterface.h"
#include "../DTO/Drop.h"
namespace L2Bot::Domain::Repositories
{
class DropRepositoryInterface : public ObjectRepositoryInterface<DTO::Drop>
{
public:
virtual const std::map<uint32_t, DTO::Drop> GetObjects() override = 0;
};
}

View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <map>
#include "ObjectRepositoryInterface.h"
#include "../DTO/Hero.h"
namespace L2Bot::Domain::Repositories
{
class HeroRepositoryInterface : public ObjectRepositoryInterface<DTO::Hero>
{
public:
virtual const std::map<uint32_t, DTO::Hero> GetObjects() override = 0;
};
}

View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <map>
#include "ObjectRepositoryInterface.h"
#include "../DTO/BaseItem.h"
namespace L2Bot::Domain::Repositories
{
class ItemRepositoryInterface : public ObjectRepositoryInterface<DTO::BaseItem>
{
public:
virtual const std::map<uint32_t, DTO::BaseItem> GetObjects() override = 0;
};
}

View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <map>
#include "ObjectRepositoryInterface.h"
#include "../DTO/NPC.h"
namespace L2Bot::Domain::Repositories
{
class NPCRepositoryInterface : public ObjectRepositoryInterface<DTO::NPC>
{
public:
virtual const std::map<uint32_t, DTO::NPC> GetObjects() override = 0;
};
}

View File

@@ -0,0 +1,13 @@
#pragma once
#include <cstdint>
#include <map>
namespace L2Bot::Domain::Repositories
{
template <typename T>
class ObjectRepositoryInterface
{
public:
virtual const std::map<uint32_t, T> GetObjects() = 0;
};
}

View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <map>
#include "ObjectRepositoryInterface.h"
#include "../DTO/Player.h"
namespace L2Bot::Domain::Repositories
{
class PlayerRepositoryInterface : public ObjectRepositoryInterface<DTO::Player>
{
public:
virtual const std::map<uint32_t, DTO::Player> GetObjects() override = 0;
};
}

View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include <map>
#include "ObjectRepositoryInterface.h"
#include "../DTO/Skill.h"
namespace L2Bot::Domain::Repositories
{
class SkillRepositoryInterface : public ObjectRepositoryInterface<DTO::Skill>
{
public:
virtual const std::map<uint32_t, DTO::Skill> GetObjects() override = 0;
};
}