Skip to content

ludus::foundation::identity::PersistentObjectKey

Ludus Wiki · API overview · Browse API

Struct

Durable identity of one object within one instance scope.
Used in saves, undo records and durable object links. Ten placements of one prefab share SourceObjectId values but have different InstanceId values, so each key names a different object.

Declared in modules/foundation/identity/include/ludus/foundation/identity/uuid.hpp

#include <ludus/foundation/identity/uuid.hpp>
struct ludus::foundation::identity::PersistentObjectKey final

Fields

Instance

InstanceId ludus::foundation::identity::PersistentObjectKey::Instance
The placement or saved instance scope that contains the object.

Related types: InstanceId

Declared in modules/foundation/identity/include/ludus/foundation/identity/uuid.hpp

Object

SourceObjectId ludus::foundation::identity::PersistentObjectKey::Object
The authored object within that scope.

Related types: SourceObjectId

Declared in modules/foundation/identity/include/ludus/foundation/identity/uuid.hpp

Methods

operator==

constexpr bool ludus::foundation::identity::PersistentObjectKey::operator==(const PersistentObjectKey &) const noexcept=default
Compare both UUIDs exactly.

Related types: PersistentObjectKey

Declared in modules/foundation/identity/include/ludus/foundation/identity/uuid.hpp