Commit f768f3b9 authored by Ilya Prokhorov's avatar Ilya Prokhorov

UUID for objects by static number increment

parent d3ebf7c9
......@@ -9,14 +9,13 @@
#include <iostream>
#include "Objects.h"
#include <FlameSteelCore/sole.hpp>
using namespace std;
Object::Object() {
auto uuidContainer = sole::uuid0();
uuid = uuidContainer.str();
FSGL_OBJECT_ID += 1;
uuid = std::to_string(FSGL_OBJECT_ID);
classIdentifier = shared_ptr<string>();
instanceIdentifier = shared_ptr<string>();
......
......@@ -16,6 +16,8 @@ class Objects;
using namespace std;
static unsigned long long int FSGL_OBJECT_ID = 0;
namespace FlameSteelCore {
/*! Object - base class of Flame Steel Core */
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment