-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor Entity#CanMove()'s return types (#1826)
* rename to CanMoveInDirection * Change MapSlideAttribute.Direction from byte to Direction * chore: out-parameter version of CanMoveInDirection() * undo the rename, easier to replace references to the existing implementation (which has the same parameter signature to the function I'm about to add) * add bool CanMoveInDirection(Direction) * remove all external direct references to CanMove and make it private * move simple special NPC logic from CanMove() to NPC CanMoveInDirection() override * minor CanMove cleanup * EventPage -> EventPageInstance correction * automatic switch statement refactor * simple inversion refactors * refactor out IsBlockedByEvent for players * refactor out CanPassPlayer() * simple LINQ conversion * if -> switch conversion * switch simplification * inlining variables * refactor offset * refactor CanSlideInDirection() * CanMoveOntoSlide is a more accurate name for what it is doing * IgnoresNpcAvoid * refactor out IsBlockedByMapAttribute * finish removing parts of CanMove * add missing cases
- Loading branch information
Showing
10 changed files
with
484 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.