
com.almasb.fxgl.entity.level.tiled.TiledObject.kt Maven / Gradle / Ivy
/*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB ([email protected]).
* See LICENSE for details.
*/
package com.almasb.fxgl.entity.level.tiled
import javafx.scene.paint.Color
/**
* Specification: https://github.com/bjorn/tiled/wiki/JSON-Map-Format
*
* @author Almas Baimagambetov ([email protected])
*/
class TiledObject(var id: Int = 0,
var width: Int = 0,
var height: Int = 0,
var name: String = "",
var type: String = "",
var visible: Boolean = true,
var x: Int = 0,
var y: Int = 0,
var rotation: Float = 0.0f,
var gid: Int = 0,
var isFlippedHorizontal: Boolean = false,
var isFlippedVertical: Boolean = false,
var textData: TextData? = null,
var properties: Map = hashMapOf(),
var propertytypes: Map = hashMapOf()) {
}
class TextData(
var text: String = "",
var isWrap: Boolean = false,
var color: Color = Color.BLACK
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy