Finality Engine
Loading...
Searching...
No Matches
ScriptModule.h File Reference

Loads and replaces native script libraries with ABI validation. More...

#include "ScriptRegistry.h"
#include "ScriptReflection.h"
#include <filesystem>

Go to the source code of this file.

Classes

struct  FINALITY::ScriptRegistrationContext
 Module registration callback and caller-owned context passed across the native library boundary. More...
class  FINALITY::ScriptModule
 Loads and replaces native script libraries with ABI validation. More...

Namespaces

namespace  FINALITY

Functions

constexpr uint64_t FINALITY::ScriptModuleABI ()

Detailed Description

Loads and replaces native script libraries with ABI validation.

The module loads a shadow copy, validates its ABI and registers definitions against the engine. Definitions and instances retain a module lease so native code stays mapped while it is still referenced.

Usage
Build GameScripts.dll against the matching engine toolchain and headers. Load reports diagnostics through its error argument. A failed reload must not discard the previous working implementation.

Definition in file ScriptModule.h.