Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Eppo
- {
- class UUID
- {
- public:
- UUID();
- UUID(uint64_t uuid);
- UUID(const UUID&) = default;
- operator uint64_t() const
- {
- return m_UUID;
- }
- operator bool() const
- {
- return static_cast<bool>(m_UUID);
- }
- private:
- uint64_t m_UUID;
- };
- using AssetHandle = UUID;
- struct Asset
- {
- Asset() = default;
- virtual ~Asset() = default;
- AssetHandle Handle;
- virtual bool operator==(const Asset& other) const
- {
- return Handle == other.Handle;
- }
- virtual bool operator!=(const Asset& other) const
- {
- return !(*this == other);
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement