[−][src]Trait yy_boss::YyResource
Associated Types
type AssociatedData: Debug
Associated Constants
const SUBPATH_NAME: &'static str
Required methods
fn name(&self) -> &str
Get's the resource's name.
fn set_name(&mut self, name: String)
Sets the name of the resource.
fn parent_path(&self) -> ViewPath
Get the path to the parent in the View Virtual File System.
fn deserialize_associated_data(
&self,
project_directory: &Path
) -> Result<Option<Self::AssociatedData>>
&self,
project_directory: &Path
) -> Result<Option<Self::AssociatedData>>
Deserialized the associated data with a given Yy File. In a sprite, for example,
this would load the pngs
into memory.
fn serialize_associated_data(
&self,
directory_path: &Path,
data: &Self::AssociatedData
) -> Result<()>
&self,
directory_path: &Path,
data: &Self::AssociatedData
) -> Result<()>
Serialized the associated data with a given Yy File. In a sprite, for example,
this would serialize the png
s.
fn cleanup(
&self,
files_to_delete: &mut Vec<PathBuf>,
folders_to_delete: &mut Vec<PathBuf>
)
&self,
files_to_delete: &mut Vec<PathBuf>,
folders_to_delete: &mut Vec<PathBuf>
)
Implementations on Foreign Types
impl YyResource for Sprite
[src]
type AssociatedData = Vec<(FrameId, ImageBuffer<Rgba<u8>, Vec<u8>>)>
const SUBPATH_NAME: &'static str
[src]
fn name(&self) -> &str
[src]
fn set_name(&mut self, name: String)
[src]
fn parent_path(&self) -> ViewPath
[src]
fn deserialize_associated_data(
&self,
project_directory: &Path
) -> AnyResult<Option<Self::AssociatedData>>
[src]
&self,
project_directory: &Path
) -> AnyResult<Option<Self::AssociatedData>>
fn serialize_associated_data(
&self,
directory_path: &Path,
data: &Self::AssociatedData
) -> AnyResult<()>
[src]
&self,
directory_path: &Path,
data: &Self::AssociatedData
) -> AnyResult<()>
fn cleanup(
&self,
files_to_delete: &mut Vec<PathBuf>,
folders_to_delete: &mut Vec<PathBuf>
)
[src]
&self,
files_to_delete: &mut Vec<PathBuf>,
folders_to_delete: &mut Vec<PathBuf>
)