MapSizeNew

class MapSizeNew

Constructors

MapSizeNew
Link copied to clipboard
fun MapSizeNew()

Needed for Json parsing

MapSizeNew
Link copied to clipboard
fun MapSizeNew(size: MapSize)
MapSizeNew
Link copied to clipboard
fun MapSizeNew(name: String)
MapSizeNew
Link copied to clipboard
fun MapSizeNew(radius: Int)
MapSizeNew
Link copied to clipboard
fun MapSizeNew(width: Int, height: Int)

Functions

clone
Link copied to clipboard
fun clone(): MapSizeNew
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
fixUndesiredSizes
Link copied to clipboard
fun fixUndesiredSizes(worldWrap: Boolean): String?

Check custom dimensions, fix if too extreme

fromPredefined
Link copied to clipboard
private fun fromPredefined(predefined: MapSize)
hashCode
Link copied to clipboard
open fun hashCode(): Int
setNewRadius
Link copied to clipboard
private fun setNewRadius(radius: Int)
toString
Link copied to clipboard
open override fun toString(): String

Properties

height
Link copied to clipboard
var height: Int = 0
name
Link copied to clipboard
var name: String
radius
Link copied to clipboard
var radius: Int = 0
width
Link copied to clipboard
var width: Int = 0

Sources

jvm source
Link copied to clipboard