feat: more compression

This commit is contained in:
TrèsAbhi committed 2024-02-05 13:33:23 -06:00
1 parent afe041f969
commit 1575b803c0
11 files changed
+135 -59

No files matched your search

+11 -2
View File
@@ -22,6 +22,7 @@ struct String {
- Everything is little endian
- Magic is always `"BKON"`
- The index of fast strings must be read as mentioned by the fast string format
```cpp
struct BlitzkriegObjectNotation {
@@ -38,11 +39,19 @@ struct BlitzkriegObjectNotation {
```cpp
struct Header {
uint16 version;
FastStringFormat fastStringFormat;
StringTable stringTable;
}
// read as uint8
enum FastStringFormat {
Format8,
Format16,
Format32,
}
struct StringTable {
uint16 count;
(uint8 | uint16 | uint32) count;
String[count] strings;
}
```
@@ -142,7 +151,7 @@ struct ValueString {
struct ValueFastString {
ValueType.FastString type;
uint16 index;
(uint8 | uint16 | uint32) index;
}
struct ValueArray {