class MAGES::UniqueIdentifierManager

Overview

Unique identifier manager. More…

class UniqueIdentifierManager
{
public:
    // structs

    struct GUIDInfo;

    // methods

    static bool Add(UniqueIdentifier uid);
    static void Remove(System.Guid guid);

    static GameObject Resolve(
        System.Guid guid,
        Action addedCallback,
        Action removedCallback
    );

    static GameObject Resolve(System.Guid guid, Action destroyedCallback);
    static GameObject Resolve(System.Guid guid);
};

Detailed Documentation

Unique identifier manager.

Methods

static bool Add(UniqueIdentifier uid)

Adds the specified uid.

Parameters:

uid

The component.

Returns:

True if it was added.

static void Remove(System.Guid guid)

Removes the specified guid.

Parameters:

guid

The guid to remove.

static GameObject Resolve(
    System.Guid guid,
    Action addedCallback,
    Action removedCallback
)

Resolves the specified guid.

Parameters:

guid

The guid.

addedCallback

Called when the object is added.

removedCallback

Called when the object is destroyed.

Returns:

The resolved game object.

static GameObject Resolve(System.Guid guid, Action destroyedCallback)

Resolves the specified guid.

Parameters:

guid

The guid.

destroyedCallback

Callback for when the object is destroyed.

Returns:

The resolved game object.

static GameObject Resolve(System.Guid guid)

Resolves the specified guid.

Parameters:

guid

The guid.

Returns:

The resolved game object.