Skip to content

Engine → Bindings → bindings_subsystem.h

script_residency

Syntax

class CONJURE_API script_residency

Constructors

AccessSignatureDescription
publicscript_residency();

Important

Copy constructor and assignment has been deleted.

Destructors

AccessSignatureDescription
public~script_residency();

Variables

AccessNameTypeDefaultDescription
privatemHandlescore::flat_hash_map<core::uuid, assets::asset_handle>{}

Functions

Public

clear

void clear() noexcept;

Drops every handle.

hold

bool hold(
    const core::uuid &id,
    assets::asset_handle handle);

Keeps the handle under its uuid; a uuid already held keeps its first handle. False for an unbound handle or the null uuid.

holds

[[nodiscard]] bool holds(
    const core::uuid &id) const noexcept;

True while a handle is held for the uuid.

release

bool release(
    const core::uuid &id) noexcept;

Drops the handle of a uuid. False when none was held.

size

[[nodiscard]] usize size() const noexcept;

Handles held.