feat: change dtos to entities
This commit is contained in:
19
L2BotCore/Domain/Entities/EntityInterface.h
Normal file
19
L2BotCore/Domain/Entities/EntityInterface.h
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "../Serializers/Serializable.h"
|
||||
|
||||
namespace L2Bot::Domain::Entities
|
||||
{
|
||||
class EntityInterface : public Serializers::Serializable
|
||||
{
|
||||
public:
|
||||
virtual const uint32_t GetId() const = 0;
|
||||
virtual void Update(const EntityInterface* other) = 0;
|
||||
virtual void SaveState() = 0;
|
||||
virtual const bool IsEqual(const EntityInterface* other) const = 0;
|
||||
|
||||
EntityInterface() = default;
|
||||
virtual ~EntityInterface() = default;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user