Custom

class Custom(val id: String, val instance: MapPlugin) : Plugin

Should be used to create custom user-defined plugins.

Parameters

id

unique id

instance

instance of user-defined MapPlugin

Constructors

Link copied to clipboard
fun Custom(id: String, instance: MapPlugin)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Equals implementation taking only id into account.

Link copied to clipboard
open override fun hashCode(): Int

Hash code implementation taking only id into account.

Link copied to clipboard
open override fun toString(): String

toString implementation.

Properties

Link copied to clipboard
val id: String

Unique plugin id.

Link copied to clipboard

Plugin instance implementing MapPlugin. Must be non-null for user-defined plugins or RuntimeException will occur when trying to initiate such plugin.