Trait traffloat::save::GameDefObject[][src]

pub trait GameDefObject: Sized {
    fn get_list(def: &GameDefinition) -> &[Self]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
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.

Returns the runtime integer ID of the object.

Returns the original string ID of the object.

Implementations on Foreign Types

Implementors