[][src]Function smash::app::sv_system::battle_object_module_accessor

pub unsafe extern "C" fn battle_object_module_accessor(
    arg1: u64
) -> &'static mut BattleObjectModuleAccessor

Returns a BattleObjectModuleAccessor

Arguments

  • lua_state a lua_state is commonly obtained from an L2CAgent - however because of "cool Rust magic" we can also obtain it from things that deref into L2CAgent's, like L2CFighterCommon's.

Example

 pub fn once_per_fighter_frame(fighter : &mut L2CFighterCommon) {
    let lua_state = fighter.lua_state_agent;
    let module_accessor = app::sv_system::battle_object_module_accessor(lua_state);
}