1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-28 04:44:06 +00:00

Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2022-12-16 04:03:44 +00:00 committed by GitHub
parent 74e374db6d
commit 01a2c60a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -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 // 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 { pub unsafe fn get_fighter_common_from_accessor(
let lua_module = *(module_accessor as *mut app::BattleObjectModuleAccessor as *mut u64).add(0x190 / 8); 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)) &mut *(*((lua_module + 0x1D8) as *mut *mut L2CFighterCommon))
} }

View file

@ -1,11 +1,11 @@
use crate::common::consts::*; use crate::common::consts::*;
use crate::common::*; use crate::common::*;
use crate::training::{frame_counter, mash}; 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::hash40;
use smash::lib::lua_const::*; use smash::lib::lua_const::*;
use smash::lib::L2CValue; use smash::lib::L2CValue;
use smash::lua2cpp::{L2CFighterBase}; use smash::lua2cpp::L2CFighterBase;
static mut TECH_ROLL_DIRECTION: Direction = Direction::empty(); static mut TECH_ROLL_DIRECTION: Direction = Direction::empty();
static mut MISS_TECH_ROLL_DIRECTION: Direction = Direction::empty(); static mut MISS_TECH_ROLL_DIRECTION: Direction = Direction::empty();