libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
scriptingbridge.h File Reference
#include "stdint.h"
#include "ship/Api.h"
#include <memory>
Include dependency graph for scriptingbridge.h:

Go to the source code of this file.

Namespaces

namespace  Ship
 Core namespace for the libultraship engine framework.
 

Functions

void ScriptSetLoader (std::shared_ptr< Ship::ScriptLoader > scriptLoader)
 
std::shared_ptr< Ship::ScriptLoaderScriptGetLoader ()
 
API_EXPORT void * ScriptGetFunction (const char *module, const char *function)
 Looks up and returns a function pointer exported from the scripting runtime.
 

Function Documentation

◆ ScriptGetFunction()

API_EXPORT void * ScriptGetFunction ( const char *  module,
const char *  function 
)

Looks up and returns a function pointer exported from the scripting runtime.

The scripting bridge exposes compiled script functions to native C/C++ code via this single entry point. The caller is responsible for casting the returned pointer to the correct function signature before calling it.

Parameters
moduleName of the scripting module that exports the function.
functionName of the function to look up within module.
Returns
Opaque function pointer, or nullptr if the module or function is not found.

◆ ScriptGetLoader()

std::shared_ptr< Ship::ScriptLoader > ScriptGetLoader ( )

◆ ScriptSetLoader()

void ScriptSetLoader ( std::shared_ptr< Ship::ScriptLoader scriptLoader)