Refactor MetaStream, ContainerStream and GameProfile, reorganize some namespaces#23
Open
iMrShadow wants to merge 23 commits into
Open
Refactor MetaStream, ContainerStream and GameProfile, reorganize some namespaces#23iMrShadow wants to merge 23 commits into
iMrShadow wants to merge 23 commits into
Conversation
…nerStream to Serialization namespace
…a Blowfish instance for Workspace
…eld and update README
…alizing, clean up code
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.
This PR refactors the MetaStream API, improves internal structure and adds documentation.
MetaStream
OpenWriteandOpenReadstatic functions.LegacyEncryptedStreamwhich matches with Telltale Tool. This requires a workspace. The user also has the option to encrypt/decrypt using theLegacyEncryptionclass provided with a Blowfish key and an archive version.MetaStreamReader/MetaStreamWritertoBinaryMetaStreamReader/BinaryMetaStreamWriter.Headersection to match Telltale Tool.Closemethod.Serializefunction to automatically preserialize.PreSerialize.MetaStreamParams
MetaStreamConfigtoMetaStreamParams.SerializedClasses,UnregisteredClassesandUnregisteredTypeswith getter methods rather than storing them.VersionInfoarray which holds all original class information which matches Telltale Tool.IsCompiledVersion. Currently it's unused, but in the future it should check if all classes are registered within the workspace.StreamVersionfield that matches Telltale Tool and it's more flexible.EncryptandCompressfields.Version.ContainerStream
ContainerStreamParams.Toolkit
Workspaceparameter in deserialize methods,Blowfish
GameProfile
StreamVersionto matchMetaStreamParams.MetaStreamVersion.AreSymbolsHashedas symbols are always hashed.VersionInfonow knows when it is hashed.VersionInfo
MetaClassRegistry
GetClass(ulong, uint)method.Miscellaneous