Type Definitions
-
Repository
-
Description
Repository definition.
Properties
Name Type Attributes Description typestring Repository type. Can be one of
github,urlorlocal.repositorystring <optional> When type is
githubthis is a mandatory field. If your GitHub repository is athttps://github.com/user/repositorythen this value should beuser/repository.pathstring <optional> When type is
githubthis is an optional field. The path under the repository where the plugins are. Default issrc.versionstring <optional> When type is
githubthis is an optional field. This is the branch, tag or commit of the repository you want to use.urlstring <optional> When type is
urlthis is a mandatory field. The URL to your repository. Take care that your host has CORS enabled.pluginsobject <optional> When type is
localthis is a mandatory field. This property contains the code for plugins in alocalrepository.e.g.
{ type: 'local', plugins: { 'pluginName1': 'JavaScript code', 'pluginName2': 'JavaScript code' } }pathstring <optional> When type is
localthis is an optional field. This property contains the path from where the local repository has been loaded.Details
-
Plugin
-
Description
Object containing HHM plugin name and content.
Properties
Name Type Attributes Description namestring <optional> Plugins name. Can be overriden by the plugin itself if it defines the
pluginSpec.nameproperty.contentstring UTF-8 encoded content of the plugin.
Details
-
PluginData
-
Description
Object containing information about a plugin.
Properties
Name Type Description idnumber The plugin id.
namestring | number The plugin name.
isEnabledboolean Indicates whether the plugin is enabled or disabled.
pluginSpecobject HHM pluginSpec property.
pluginSpecOriginalobject Plugins initial pluginSpec (default values).
Details
-
RoomEventArgs
-
Description
Event argument object that gets sent from the browser when a room event happens.
The
handlerNamecan be one of the following:onPlayerJoinonPlayerLeaveonTeamVictoryonPlayerChatonTeamGoalonGameStartonGameStoponPlayerAdminChangeonPlayerTeamChangeonPlayerKickedonGamePauseonGameUnpauseonPositionsResetoronStadiumChangeSee the roomObject documentation to find out what kind of arguments to expect.
Properties
Name Type Description handlerNamestring Name of the haxball room event handler function that got triggered.
argsArray.<any> Arguments that the event handler function received.
Details
-
RepositoryData
-
Description
Repository data.
Properties
Name Type Attributes Description namestring Name of the repository.
descriptionstring <optional> Description of repository.
authorstring <optional> Author of the repository.
pluginsArray.<string> <optional> Plugins that the repository contains.
configobject <optional> Configuration object for this repository. Can for example define the path of where to load the plugins.
Details
-
BrowserAction
-
Description
Data object sent from the browser context.
Used internally to communicate with the headless browser.
Follows the flux standard action form loosely. See (https://github.com/redux-utilities/flux-standard-action).
Properties
Name Type Attributes Description typestring The type of data identifies to the consumer the nature of the data that was sent.
payloadany <optional> The optional payload property MAY be any type of value.
errorboolean <optional> The optional error property MAY be set to true if the data represents an error.
Details
-
File
-
Description
Represents a file.
Properties
Name Type Description namestring Files name.
contentstring UTF-8 encoded contents of the file.
Details