Skip to content

Engine → Scripting → script_class_registry.h

script_class_info

Syntax

struct CONJURE_API script_class_info

Variables

AccessNameTypeDefaultDescription
publiccallbackMasku160
publicfieldsstd::vector<script_field_info>{}
publicfullNamestd::string{}
publichashu640

Functions

Public

find_field

[[nodiscard]] const script_field_info *find_field(
    u64 fieldHash) const noexcept;

The field with this hash, or nullptr (binary search; fields must be sorted).

[[nodiscard]] const script_field_info *find_field(
    std::string_view fieldName) const noexcept;

The field with this name, or nullptr.

has_callback

[[nodiscard]] bool has_callback(
    script_callback callback) const noexcept;

True when the class overrides the callback.

sort_fields

void sort_fields();

Sorts the fields by hash (what find_field needs).