Перейти к основному содержимому

deacoudre_arena

Dé à Coudre Arena — misc entry.

Entry Information

PropertyValue
Entry IDdeacoudre_arena
TypeMisc
ColorBlue
Iconmdi:pool

Description

Game mode for Dé à Coudre. / enum class DeACoudreGameMode { /** Players take turns jumping one at a time. / SINGLE, /* All players jump simultaneously for the duration of the phase. / CONCURRENT, /* Players compete in teams. / TEAM } /* Resolved arena data used at runtime by DeACoudre phases. / data class DeACoudreArena( val poolRegion: RegionModel?, val jumpLocation: Location, val spawnLocation: Location, val mode: DeACoudreGameMode, val countdown: Int, val jumpTime: Int, val waitingRadius: Double, val minPlayers: Int, val maxPlayers: Int, ) { val poolYRange: IntRange? = poolRegion?.shape?.let { shape -> val minY = floor(shape.min().y).toInt() val maxY = ceil(shape.max().y).toInt() minY..maxY } fun inPool(location: Location): Boolean { val shape = poolRegion?.shape ?: return false val world = location.world ?: return false val worldId = world.uid.toString() val worldName = world.name.lowercase() val shapeWorld = shape.min().world.identifier.lowercase() if (shapeWorld.isNotEmpty() && shapeWorld != worldId.lowercase() && shapeWorld != worldName) return false return shape.contains(location.toPosition()) } } /** Entry defining a Dé à Coudre arena configuration. This entry provides DeACoudre-specific settings (pool region, jump locations, etc.) that are not part of the generic [MinigameArenaDefinition]. Phases resolve an instance of [DeACoudreArena] from this definition at runtime.

Fields

FieldTypeDescription
poolRegionRef<RegionDefinitionEntry>Protection region defining the pool water area
jumpLocationVar<Position>Location where players jump from
spawnLocationVar<Position>Spawn / waiting location for players
modeVar<DeACoudreGameMode>Game mode: SINGLE, CONCURRENT, or TEAM
countdownVar<Int>Countdown duration before the game starts (seconds)
jumpTimeVar<Int>Time limit per jump / total jump phase (seconds)
waitingRadiusVar<Double>Radius around spawn where waiting players are confined
minPlayersVar<Int>Minimum players required to start
maxPlayersVar<Int>Maximum players allowed

Usage Example

- entry: deacoudre_arena
name: "Dé à Coudre Arena"
poolRegion: ""
jumpLocation: ""
spawnLocation: ""
mode: ""
countdown: 0
jumpTime: 0
waitingRadius: 0
minPlayers: 0
maxPlayers: 0