mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 23:10:08 +00:00
use TileRef instead of tile
This commit is contained in:
@@ -15,9 +15,16 @@ export interface Rectangle {
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function placeName(game: Game, player: Player): NameViewData {
|
||||
return {
|
||||
x: 0,
|
||||
y: 0,
|
||||
size: 0
|
||||
}
|
||||
const boundingBox = calculateBoundingBox(player.borderTiles());
|
||||
|
||||
|
||||
const rawScalingFactor = (boundingBox.max.x - boundingBox.min.x) / 100
|
||||
const scalingFactor = within(Math.floor(rawScalingFactor), 1, 1000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user