Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify CostMatrix interfaces #471

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

shanemadden
Copy link
Collaborator

  • Remove SparseCostMatrix, to be added back in screeps-game-utils crate
  • Removed merge functions on LocalCostMatrix
  • Removed set_multi function on CostMatrixSet, and replace set function with set_xy (helps differentiate trait function from struct functions, takes RoomXY); added CostMatrixGet with associated getter, implemented for both CostMatrix and LocalCostMatrix
  • HasLocalPosition.. I don't think it ever was hooked to anything? Nuking it, as Position is the only thing that'd realistically ever be able to fit it (or maybe RoomXY, debatably - not worrying about it)

@shanemadden shanemadden merged commit aad7151 into rustyscreeps:main Nov 28, 2023
10 checks passed
@shanemadden shanemadden deleted the cost_matrix_traits branch November 28, 2023 05:41
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.

1 participant