feat: change dtos to entities
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#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/EntityRepositoryInterface.h
Normal file
14
L2BotCore/Domain/Repositories/EntityRepositoryInterface.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
#include "../Entities/WorldObject.h"
|
||||
#include "../DTO/EntityState.h"
|
||||
|
||||
namespace L2Bot::Domain::Repositories
|
||||
{
|
||||
class EntityRepositoryInterface
|
||||
{
|
||||
public:
|
||||
virtual const std::vector<DTO::EntityState*> GetEntities() = 0;
|
||||
virtual void Reset() = 0;
|
||||
};
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
#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;
|
||||
};
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
#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;
|
||||
};
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
#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;
|
||||
};
|
||||
}
|
@@ -1,13 +0,0 @@
|
||||
#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;
|
||||
};
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
#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;
|
||||
};
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
#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