Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jugeeya authored Sep 11, 2020
1 parent 0707619 commit e94aa33
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ A plugin allowing for centralized hooking of parameter files, allowing multiple

## Usage
```rust
fn params_main(params_info: &smash::params::ParamsInfo<'_>) {
if let Ok(common) = params_info.get::<StaticCommonParams>() {
use smash::params::*;

fn params_main(params_info: &ParamsInfo<'_>) {
if let Ok(common) = params_info.get::<CommonParams>() {
common.shield_damage_mul = 0.0;
common.precede = 3;
common.cliff_max_count = 0;
common.invalid_capture_frame = 900;
}

if let Ok(fighter_param) = params_info.get::<FighterParams>() {
let ganon_params = fighter_param[*FIGHTER_KIND_GANON];
ganon_params.walk_speed_max = 30.0;
}
}

// in main
Expand All @@ -32,4 +39,4 @@ Or, if your IP isn't configured yet, use
```
cargo skyline install --ip X.X.X.X
```
Where `X.X.X.X` is your switch's IP address
Where `X.X.X.X` is your switch's IP address

0 comments on commit e94aa33

Please sign in to comment.