Remade component ids
No longer based on incrementing counter Former-commit-id: b875e17781d8bcda48ea9ada523adf0823b22a8b
This commit is contained in:
@@ -14,20 +14,15 @@ namespace Ndk
|
||||
class NDK_API BaseComponent
|
||||
{
|
||||
public:
|
||||
BaseComponent(nzUInt32 componentId);
|
||||
BaseComponent(ComponentId componentId);
|
||||
virtual ~BaseComponent();
|
||||
|
||||
virtual BaseComponent* Clone() const = 0;
|
||||
|
||||
nzUInt32 GetId() const;
|
||||
|
||||
static nzUInt32 GetNextId();
|
||||
ComponentId GetId() const;
|
||||
|
||||
protected:
|
||||
nzUInt32 m_componentId;
|
||||
|
||||
private:
|
||||
static nzUInt32 s_nextId;
|
||||
ComponentId m_componentId;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user