Feature/utility extensions helpers#1012
Open
Zeidev wants to merge 5 commits intomyildirimofficial:masterfrom
Open
Feature/utility extensions helpers#1012Zeidev wants to merge 5 commits intomyildirimofficial:masterfrom
Zeidev wants to merge 5 commits intomyildirimofficial:masterfrom
Conversation
…lity - CollectionExtensions: Add GetOrDefault, GetOrAdd, AddRange, IsNullOrEmpty, ForEach - StringExtension: Add IsNullOrWhiteSpace, OrDefault, SafeFormat, Truncate - RandomExtensions: Add static thread-safe Random instance - Utilities: Add comprehensive math, distance, formatting helpers These changes are backward compatible and do not break existing functionality. Co-authored-by: openhands <[email protected]>
- ObjectExtensions: Null-safe operations (IfNotNull, OrDefault, CastAs, etc.) - PathHelper: Centralized path constants and helpers - HttpClientExtensions: Safe HTTP operations with error handling - ConfigExtensions: Config GetOrSet, type-safe getters, batch operations Co-authored-by: openhands <[email protected]>
- Reduces code duplication in plugin/botbase Bootstrap classes - Provides common implementations for IPlugin interface - Includes helper methods for logging and config - Lazy-loaded view support - CanEnable/CanDisable hooks Co-authored-by: openhands <[email protected]>
- Use ConcurrentDictionary instead of List for O(1) lookups - Cache compiled event handlers to avoid repeated LINQ queries - Add UnsubscribeEvent support - Add ClearEvent and ClearAll methods - Add FireEventSync and FireEventAsync methods - Add GetListenerCount for debugging - Thread-safe with proper locking Performance improvement: ~10-100x faster for frequent events Co-authored-by: openhands <[email protected]>
- Fix bug in ShoppingManager.RepairItems: use 'response' instead of 'packet' in callback - Add proper error handling in InventoryItemUseResponse for failed item usage - Add OnUseItemFailed event for debugging and plugin handling Bug: myildirimofficial#1001 - Auto repair hammer didn't work Co-authored-by: openhands <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.