Custom

Should be used to create custom user-defined plugins.

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

Parameters

id

unique id

instance

instance of user-defined MapPlugin

Constructors

Custom
Link copied to clipboard

unique id

fun Custom(id: String, instance: MapPlugin)

Functions

equals
Link copied to clipboard

Equals implementation taking only id into account.

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

Hash code implementation taking only id into account.

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

toString implementation.

open override fun toString(): String

Properties

id
Link copied to clipboard

Unique plugin id.

override val id: String
instance
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.

override val instance: MapPlugin?