Creating a Custom Plug-in Interface

The interface is central to the custom plug-in model. A custom plug-in’s interface defines functions that are executed within the custom plug-in script. A custom plug-in script can be any type of server script other than a Mass Update script. Note that client scripts cannot act as custom plug-in scripts.

Important:

Functions defined in a custom plug-in’s interface are only ever called within the custom plug-in scripts’s code.

The functions in an interface are not fully defined. Each function includes a signature (the function name and parameters) and a return type, but no body.

An implementation fully defines each of the interface’s functions. It contains the logic executed by the interface’s functions. You must define a default implementation of the interface. If needed, you can also define one or more alternate implementations of the interface.

Important:

Each implementation must keep the signature and return type defined in the interface.

Related Topics

General Notices