refactor(tileobject): improve reachability check and simplify code#1648
refactor(tileobject): improve reachability check and simplify code#1648
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request refactors the caching architecture to use dependency injection and singleton patterns. It introduces injected constructors to Rs2NpcCache, Rs2PlayerCache, Rs2TileItemCache, Rs2TileObjectCache, and Rs2BoatCache, replacing static access patterns with instance methods. The Microbot class now exposes these caches as injectable dependencies via getter methods. Supporting changes include updating documentation to encourage cache.query() usage, adding a WILL_ANNE boat type, refactoring Rs2BoatModel interactions to use tile-object caching, and adding an isReachable() method to Rs2TileObjectModel. The version is bumped to 2.1.8. Possibly related PRs
✨ Finishing touches
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (19)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
No description provided.