Struct eos_rs::api::dungeon_mode::sprites::DungeonSpriteHandler
source · pub struct DungeonSpriteHandler<'a>(_);
Expand description
Helper struct for dealing with sprite data in dungeon mode.
To get an instance of this, use crate::api::dungeon_mode::GlobalDungeonData::sprites
.
Implementations§
source§impl<'a> DungeonSpriteHandler<'a>
impl<'a> DungeonSpriteHandler<'a>
sourcepub fn load_mission_monster_sprites(&mut self)
pub fn load_mission_monster_sprites(&mut self)
Loads the sprites of monsters that appear on the current floor because of a mission, if applicable.
This includes monsters to be rescued, outlaws and its minions.
sourcepub fn get_monster_sprite_index(&self, monster_idx: MonsterSpeciesId) -> u16
pub fn get_monster_sprite_index(&self, monster_idx: MonsterSpeciesId) -> u16
Gets the sprite index of the specified monster on this floor
sourcepub unsafe fn load_monster_sprite(
&mut self,
monster_id: MonsterSpeciesId,
param_2: undefined
)
pub unsafe fn load_monster_sprite( &mut self, monster_id: MonsterSpeciesId, param_2: undefined )
Loads the sprite of the specified monster to use it in a dungeon.
Safety
The caller must make sure the undefined params are valid for this function.
sourcepub fn get_total_sprite_file_size(&self, monster_id: MonsterSpeciesId) -> i32
pub fn get_total_sprite_file_size(&self, monster_id: MonsterSpeciesId) -> i32
Checks Castform and Cherrim
Note: unverified, ported from Irdkwia’s notes
sourcepub fn store_sprite_file_index_both_genders(
&mut self,
monster_id: MonsterSpeciesId,
file_id: i32
)
pub fn store_sprite_file_index_both_genders( &mut self, monster_id: MonsterSpeciesId, file_id: i32 )
Note: unverified, ported from Irdkwia’s notes
sourcepub fn swap_monster_wan_file_index(&mut self, src_id: i32, dst_id: i32)
pub fn swap_monster_wan_file_index(&mut self, src_id: i32, dst_id: i32)
Note: unverified, ported from Irdkwia’s notes
sourcepub fn delete_monster_sprite_file(&mut self, monster_id: MonsterSpeciesId)
pub fn delete_monster_sprite_file(&mut self, monster_id: MonsterSpeciesId)
Note: unverified, ported from Irdkwia’s notes
sourcepub fn delete_all_monster_sprite_files(&mut self)
pub fn delete_all_monster_sprite_files(&mut self)
Note: unverified, ported from Irdkwia’s notes