/// <summary> /// Deserialize a Scene2D from the given stream. /// </summary> /// <param name="stream"></param> /// <param name="compressed"></param> /// <returns></returns> public static IScene2DPrimitivesSource Deserialize(Stream stream, bool compressed) { Scene2DLayeredSerializer serializer = new Scene2DLayeredSerializer(); return serializer.DeSerialize(stream); }