Skip to content

WorldProjectionSettings

class WorldProjectionSettings : Component()
constructor(shard: rift.scripting.Shard)
constructor(place: rift.scripting.GlobalScene)
Example
fun describe(boat: WorldProjection): String {
val settings = boat.getComponent<WorldProjectionSettings>()
return "${settings.sizeX * 8} by ${settings.sizeZ * 8} tiles of shard ${settings.targetShardId}"
}
val targetShardId: Int
val sizeX: Int
val sizeZ: Int
val baseZoneX: Int
val baseZoneZ: Int
val activeLevel: Int
var config: Int
val shard: rift.scripting.Shard?
var place: rift.scripting.GlobalScene?
override fun onComponentAddedToEntity()
override fun onComponentRemovedFromEntity()