mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
chore: Extract NeighborDirection to another file
This commit is contained in:
parent
3393363172
commit
2990454f23
14
core/src/com/unciv/logic/map/NeighborDirection.kt
Normal file
14
core/src/com/unciv/logic/map/NeighborDirection.kt
Normal file
@ -0,0 +1,14 @@
|
||||
package com.unciv.logic.map
|
||||
|
||||
enum class NeighborDirection(val clockPosition: Int) {
|
||||
TopRight(2),
|
||||
BottomRight(4),
|
||||
Bottom(6),
|
||||
BottomLeft(8),
|
||||
TopLeft(10),
|
||||
Top(12);
|
||||
|
||||
companion object {
|
||||
val byClockPosition = entries.associateBy { it.clockPosition }
|
||||
}
|
||||
}
|
@ -790,16 +790,3 @@ class TileMap(initialCapacity: Int = 10) : IsPartOfGameInfoSerialization {
|
||||
.distinct()
|
||||
}
|
||||
}
|
||||
|
||||
enum class NeighborDirection(val clockPosition: Int) {
|
||||
TopRight(2),
|
||||
BottomRight(4),
|
||||
Bottom(6),
|
||||
BottomLeft(8),
|
||||
TopLeft(10),
|
||||
Top(12);
|
||||
|
||||
companion object {
|
||||
val byClockPosition = entries.associateBy { it.clockPosition }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user