feat: change dtos to entities

This commit is contained in:
k0t9i
2023-01-21 13:15:11 +04:00
parent 3c20df7683
commit 7637260d19
58 changed files with 704 additions and 1310 deletions

View File

@@ -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;
};
}

View 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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}