public object Deserialize(Stream stream, CachedTagGen1 instance) => Deserialize(new Gen1SerializationContext(stream, this, instance), TagDefinition.Find(instance.Group.Tag));
//TODO: Implement serialization for gen1 public void Serialize(Stream stream, CachedTagGen1 instance, object definition) { throw new NotImplementedException(); }
// // public methods specific to gen3 // public T Deserialize <T>(Stream stream, CachedTagGen1 instance) => Deserialize <T>(new Gen1SerializationContext(stream, this, instance));
public Gen1SerializationContext(Stream stream, GameCacheGen1 gameCache, CachedTagGen1 tag) { GameCache = gameCache; Tag = tag; Stream = stream; }