Skip to content

Conversation

@sparr
Copy link

@sparr sparr commented Nov 16, 2025

Brief Description

Adds the _bits property to PathFinder.CostMatrix

https://github.com/screeps/engine/blob/97c9d12385fed686655c13b09f5f2457dd83a2bf/src/game/path-finder.js#L19

Fixes #248 (which was previously closed without resolution)

Checklists

  • Test passed
  • Coding style (indentation, etc)
  • Edits have been made to src/ files not index.d.ts
  • Run npm run compile to update index.d.ts

I let the commit hook do the compile, which I think is what CONTRIBUTING.md suggests.

@ShuP1
Copy link

ShuP1 commented Nov 23, 2025

_bits is widely used but officially undocumented. So it should either have a warning or an explicit type cast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add _bits to CostMatrix

2 participants