Trait pill_engine::game::Resource [−][src]
pub trait Resource: PillTypeMapKey {
type Handle: PillSlotMapKey + Send;
fn get_name(&self) -> String;
fn initialize(&mut self, engine: &mut Engine) -> Result<()> { ... }
fn pass_handle<H: PillSlotMapKey>(&mut self, self_handle: H) { ... }
fn deferred_update(
&mut self,
engine: &mut Engine,
request: usize
) -> Result<()> { ... }
fn destroy<H: PillSlotMapKey>(
&mut self,
engine: &mut Engine,
self_handle: H
) -> Result<()> { ... }
}