Trait traffloat::save::GameDefObject [−][src]
pub trait GameDefObject: Sized {
fn get_list(def: &GameDefinition) -> &[Self]ⓘ;
fn id(&self) -> Id<Self>;
fn id_str(&self) -> &IdString<Self>;
}
Expand description
Implemented by def types that can be uniquely indexed in the GameDefinition
scope.
Required methods
Gets the slice in the GameDefinition
that holds the objects of this type.