forked from jaildesigner-jailgames/jaildoctors_dilemma
fix: inicialitzacions
This commit is contained in:
@@ -46,18 +46,18 @@ class Player {
|
||||
};
|
||||
|
||||
struct Data {
|
||||
SpawnData spawn_data{};
|
||||
SpawnData spawn_data;
|
||||
//std::string texture_path{};
|
||||
std::string animations_path{};
|
||||
std::string animations_path;
|
||||
std::shared_ptr<Room> room = nullptr;
|
||||
|
||||
// Constructor por defecto
|
||||
Data() = default;
|
||||
|
||||
// Constructor con parámetros
|
||||
Data(SpawnData spawn_data, std::string texture_path, std::string animations_path, std::shared_ptr<Room> room)
|
||||
: spawn_data(std::move(spawn_data)),
|
||||
//texture_path(std::move(texture_path)),
|
||||
Data(SpawnData spawn_data, const std::string& texture_path, std::string animations_path, std::shared_ptr<Room> room)
|
||||
: spawn_data(spawn_data),
|
||||
// texture_path(std::move(texture_path)),
|
||||
animations_path(std::move(animations_path)),
|
||||
room(std::move(room)) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user