Engine → Scripting → script_class_registry.h
script_class_info¶
| Type | Struct |
| Namespace | conjure::scripting |
| Include File Path | engine/include/conjure/scripting/script_class_registry.h |
| Source File Path | engine/src/scripting/script_class_registry.cpp |
| API ↗ | Scripting, Scripts, components and the runtime |
Syntax¶
Variables¶
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | callbackMask | u16 | 0 | |
| public | fields | std:: | {} | |
| public | fullName | std::string | {} | |
| public | hash | u64 | 0 |
Functions¶
Public¶
find_field¶
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¶
has_callback¶[[nodiscard]] bool has_callback(
script_callback callback) const noexcept;True when the class overrides the callback.