warcrafty 1.0.1
warcrafty: ^1.0.1 copied to clipboard
A high-performance Dart library for reading and writing World of Warcraft DBC files.
1.0.1 #
Fixed #
- Exception Handling
- Replace
FormatExceptionwithDbcFormatExceptionfor consistent error handling across DBC operations - Improved error specificity for format-related issues
- Replace
Refactored #
- Code Cleanup
- Removed redundant
fieldOffsetsgetter fromDbcLoader - Simplified
loader.dartby eliminating unnecessary field offset delegation - Updated
DbcIndexto directly access field offsets from loader's internal structure
- Removed redundant
1.0.0 #
Added #
-
Core DBC Operations
DbcLoader- Read DBC files with sync/async supportDbcWriter- Write DBC files with string deduplicationDbcRecord- Access record fields with type-safe methodsDbcIndexBuilder- Build ID-based indexes with O(1) lookup
-
Locale Field Utilities (
locale_fields.dart)createLocaleFields()- Generate field definitions for 16 languagescreateLocaleFieldsWithFlag()- Generate locale fields with flag fieldcreateUnusedFields()- Generate unused field definitionscreateIntFields()- Generate consecutive integer field definitions
-
Type Validation in DbcWriter
- Validate field types before writing (int, float, string, bool)
- Range checking for byte fields (0-255)
- Friendly error messages with record and field index
-
100+ Predefined DBC Formats
- Achievement, Character, Creature, Faction formats
- Item, Map, Quest, Skill, Spell formats
- Vehicle, GT tables, and more
-
String Block Handler
- O(1) string lookup with prebuilt index
- Efficient string deduplication on write
Changed #
- Refactored
DbcWriterto extract_collectStrings()and_validateFieldType()methods