ngpack library
Classes
- Achievement
- This is the achivement content of Thimbleweed Park game.
- AchievementCodec
- AchievementDecoder
- AchievementEncoder
- BnutCodec
- A BnutCodec encodes String to bnut bytes data and decodes bytes to Squirrel code (.nut extension).
- BnutDecoder
- A BnutDecoder converts bnut bytes data to utf8 bytes representing Squirrel code (.nut extension).
- BnutEncoder
- A BnutEncoder converts Squirrel code (.nut extension) to bnut bytes data.
- ChecksumDecoder
- DataChecksum
- DataChecksumCodec
- DataChecksumDecoder
- DataChecksumEncoder
- GGMapCodec
- A GGMapCodec encodes Map<String, dynamic> to bytes and decodes bytes to Map<String, dynamic>] objects.
- GGMapDecoder
- A GGMapDecoder converts data to a Map.
- GGMapEncoder
- A GGMapDecoder converts a Map to a list of bytes.
- GGPackBuilder
- A GGPackBuilder encodes a list of entries of type GGPackEntry to data.
- GGPackDecoder
- A GGPackDecoder decodes data into a list of entries of type GGPackEntry.
- GGPackEntry
- Represents an entry in a GGPackDecoder.
- InputStream
- KnownXorKeys
- Contains all the known xor keys used to decode ggpack files.
- LineNormalizer
- Normalizes line feed '\r\n' and '\r' to '\n'.
- Markers
- OutputStream
- TwpSavegame
- TwpSaveGameCodec
- TwpSaveGameDecoder
- TwpSaveGameEncoder
- XorCodec
- A XorCodec encodes bytes to xor bytes and decodes xor bytes to xor bytes.
- XorDecoder
- A XorDecoder converts xor encrypted data to data.
- XorEncoder
- A XorEncoder converts data to xor encrypted data.
- XorKey
- Xor key used to encode/decode ggpack files.
- XXTeaCodec
- A XXTeaCodec encodes bytes to bytes encrypted with XXTea and decodes XXTea encrypted bytes to bytes.
- XXTeaDecoder
- A XXTeaDecoder decodes XXTea encrypted bytes to bytes.
- XXTeaEncoder
- A XXTeaCodec encodes bytes to bytes encrypted with XXTea.
Enums
- KnownXorKeyId
- Represents the ids of the known xor keys used to encode/decode ggpack files.
Constants
- achievement → const AchievementCodec
- bnut → const BnutCodec
- An instance of the default implementation of the BnutCodec.
- dataChecksum → const DataChecksumCodec
- ggmap → const GGMapCodec
- An instance of the default implementation of the GGMapCodec.
- knownXorKeys → const KnownXorKeys
- An instance of the default implementation of the KnownXorKeys.
- savegame → const TwpSaveGameCodec
- Signature → const int
Functions
-
bnutDecode(
List< int> data) → String - Converts bytes to Squirrel code.
-
bnutEncode(
String code) → List< int> - Converts Squirrel code to bytes.
-
ggmapDecode(
Uint8List data) → Map< String, dynamic> - Converts bytes to Map<String, dynamic>.
-
ggmapEncode(
Map< String, dynamic> map) → Uint8List - Converts Map<String, dynamic> to bytes.