Add project files.
This commit is contained in:
14
L2BotCore/Domain/Repositories/DropRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/DropRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
14
L2BotCore/Domain/Repositories/HeroRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/HeroRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
14
L2BotCore/Domain/Repositories/ItemRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/ItemRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
14
L2BotCore/Domain/Repositories/NPCRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/NPCRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
13
L2BotCore/Domain/Repositories/ObjectRepositoryInterface.h
Normal file
13
L2BotCore/Domain/Repositories/ObjectRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
14
L2BotCore/Domain/Repositories/PlayerRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/PlayerRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
14
L2BotCore/Domain/Repositories/SkillRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/SkillRepositoryInterface.h
Normal 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user