mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 02:44:17 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
74e374db6d
commit
01a2c60a29
2 changed files with 8 additions and 5 deletions
|
@ -245,7 +245,10 @@ pub unsafe fn get_fighter_distance() -> f32 {
|
|||
}
|
||||
|
||||
// From https://github.com/chrispo-git/ult-s/blob/cc1c3060ed83f6d33f39964e84f9c32c07a17bae/src/controls/util.rs#L106
|
||||
pub unsafe fn get_fighter_common_from_accessor(module_accessor: &mut app::BattleObjectModuleAccessor) -> &mut L2CFighterCommon {
|
||||
let lua_module = *(module_accessor as *mut app::BattleObjectModuleAccessor as *mut u64).add(0x190 / 8);
|
||||
pub unsafe fn get_fighter_common_from_accessor(
|
||||
module_accessor: &mut app::BattleObjectModuleAccessor,
|
||||
) -> &mut L2CFighterCommon {
|
||||
let lua_module =
|
||||
*(module_accessor as *mut app::BattleObjectModuleAccessor as *mut u64).add(0x190 / 8);
|
||||
&mut *(*((lua_module + 0x1D8) as *mut *mut L2CFighterCommon))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
use crate::common::consts::*;
|
||||
use crate::common::*;
|
||||
use crate::training::{frame_counter, mash};
|
||||
use smash::app::{self, BattleObjectModuleAccessor, sv_system, lua_bind::*};
|
||||
use smash::app::{self, lua_bind::*, sv_system, BattleObjectModuleAccessor};
|
||||
use smash::hash40;
|
||||
use smash::lib::lua_const::*;
|
||||
use smash::lib::L2CValue;
|
||||
use smash::lua2cpp::{L2CFighterBase};
|
||||
use smash::lua2cpp::L2CFighterBase;
|
||||
|
||||
static mut TECH_ROLL_DIRECTION: Direction = Direction::empty();
|
||||
static mut MISS_TECH_ROLL_DIRECTION: Direction = Direction::empty();
|
||||
|
|
Loading…
Reference in a new issue