mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 10:10:50 +00:00
made name rendering more efficient
This commit is contained in:
@@ -259,6 +259,7 @@ export interface Player {
|
||||
}
|
||||
|
||||
export interface MutablePlayer extends Player {
|
||||
largestClusterBoundingBox: { min: Cell, max: Cell } | null
|
||||
// Targets for this player
|
||||
targets(): Player[]
|
||||
// Targets of player and all allies.
|
||||
|
||||
@@ -56,6 +56,9 @@ export class PlayerImpl implements MutablePlayer {
|
||||
this._displayName = this._name // processName(this._name)
|
||||
|
||||
}
|
||||
|
||||
largestClusterBoundingBox: { min: Cell, max: Cell } | null
|
||||
|
||||
toUpdate(): PlayerUpdate {
|
||||
return {
|
||||
type: GameUpdateType.Player,
|
||||
|
||||
Reference in New Issue
Block a user