Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SDK_API::registerDCodeFunction

Registers a native DCode function together with its editor-facing argument documentation.

Declaration

virtual std::string registerDCodeFunction(
            std::string local_id,
            std::string name,
            DCodeFunctionHandler handler,
            std::string doc = {},
            std::vector<DCodeFunctionArgument> input_arguments = {},
            std::vector<DCodeFunctionArgument> output_arguments = {}
        ) = 0;

Parameters

NameDescription
local_idIdentifier unique within the plugin.
nameOperator-facing function name.
handlerJSON function callback.
docFunction documentation shown by DCode tooling.
input_argumentsStructured input documentation.
output_argumentsStructured output documentation.

Returns

The plugin-qualified DCode function identifier.