Struct cnmo_parse::cnma::ResourceId
source · pub struct ResourceId {
pub id: u32,
pub path: String,
}Expand description
Used in the SoundID and the MusicID modes to specify what file a sound is related to and its related ID.
Fields§
§id: u32The ID for CNM Online. If 2 are the same, the last is used and a memory leak occurs.
path: StringThe path to the file in question. It is relative based on the exe’s directory and doesn’t need a “./” at the start.
Trait Implementations§
source§impl Clone for ResourceId
impl Clone for ResourceId
source§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ResourceId
impl Debug for ResourceId
source§impl Display for ResourceId
impl Display for ResourceId
source§impl PartialEq<ResourceId> for ResourceId
impl PartialEq<ResourceId> for ResourceId
source§fn eq(&self, other: &ResourceId) -> bool
fn eq(&self, other: &ResourceId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.