-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Container management methods to Manager class
- Loading branch information
1 parent
b917843
commit 0e09dbe
Showing
7 changed files
with
110 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include <uuid/uuid.h> | ||
#include <libecs-cpp/ecs.hpp> | ||
|
||
namespace ecs | ||
{ | ||
Container::Container() | ||
{ | ||
uuid_t uuid; | ||
uuid_generate(uuid); | ||
|
||
this->Handle.resize(40); | ||
uuid_unparse(uuid, &this->Handle[0]); | ||
|
||
// this->container_thread = std::thread(&container::thread_func, this); | ||
// this->container_thread.detach(); | ||
} | ||
|
||
Container::Container(std::string Handle) | ||
{ | ||
this->Handle = Handle; | ||
// this->ContainerThread = std::thread(&container::thread_func, this); | ||
// this->ContainerThread.detach(); | ||
} | ||
|
||
void Container::ManagerSet(ecs::Manager *Manager) | ||
{ | ||
this->Manager = Manager; | ||
} | ||
|
||
std::string Container::HandleGet() | ||
{ | ||
return this->Handle; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters