feat: use shared_ptr for object state
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include "../Entities/WorldObject.h"
|
||||
#include "../DTO/EntityState.h"
|
||||
|
||||
@@ -8,7 +9,7 @@ namespace L2Bot::Domain::Repositories
|
||||
class EntityRepositoryInterface
|
||||
{
|
||||
public:
|
||||
virtual const std::vector<DTO::EntityState*> GetEntities() = 0;
|
||||
virtual const std::vector<std::shared_ptr<DTO::EntityState>> GetEntities() = 0;
|
||||
virtual void Reset() = 0;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user