removed redundant method in sprite sheet animation
resource resolving is now fully automatic
use crate::{
animation::spritesheet::signal::Signal,
core::{algebra::Vector2, math::Rect, reflect::prelude::*, visitor::prelude::*},
- engine::resource_manager::ResourceManager,
resource::texture::Texture,
};
use std::collections::vec_deque::VecDeque;
@@ -316,17 +315,6 @@ impl SpriteSheetAnimation {
self.texture.clone()
}
- /// Tries to restore handles of internal resources, this method must be called after deserialization!
- pub fn restore_resources(&mut self, resource_manager: &ResourceManager) {
- resource_manager
- .state()
- .containers_mut()
- .textures
- .try_restore_optional_resource(&mut self.texture);
-
- self.frames_container.texture = self.texture.clone();
- }
-
/// Returns a shared reference to inner frames container.
pub fn frames(&self) -> &SpriteSheetFramesContainer {
&self.frames_container
