the files can get messy, and we want to return these items to the functions, so the proposal is a transport struct for these unwrapped values
For example:
impl MemoryManagerUpdate for TitleSequenceManagerData {
fn update(
&mut self,
ctx: &StateContext,
manager: &mut UnityMemoryManager,
) -> Result<(), Error> {
if let Some(class) = manager.class {
if let Some(process) = &ctx.process {
if let Some(module) = &ctx.module {
if let Some(singleton) = manager.singleton {
self.update_current_screen_name(ctx, manager)?;
self.update_title_menu(ctx, manager)?;
self.update_pressed_start(ctx, manager)?;
self.update_load_save_done(ctx, manager)?;
self.update_relics(ctx, manager)?;
self.update_new_game_characters(ctx, manager)?;
}
}
}
}
Ok(())
}
}
the files can get messy, and we want to return these items to the functions, so the proposal is a transport struct for these unwrapped values For example:
could be: