Skip to content

Commit

Permalink
add missing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMiguel211 committed Feb 8, 2024
1 parent 5b5f610 commit 149ae73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/add_modify_obj_patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,9 @@ pub fn patch_add_controller_action<'r>(
macro_rules! update {
($obj:expr) => {
let property_data = $obj.property_data.as_controller_action_mut().unwrap();

property_data.action = config.action as u32;

if let Some(active ) = config.active {property_data.active = active as u8 }
if let Some(one_shot ) = config.one_shot {property_data.one_shot = one_shot as u8 }
};
Expand Down
2 changes: 2 additions & 0 deletions src/patch_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ pub enum EnviornmentalEffect {
}

#[derive(Serialize, Deserialize, Debug, Copy, Clone, Eq, PartialEq)]
#[serde(deny_unknown_fields)]
pub enum ControllerActionType {
Forward = 0,
Backward,
Expand Down Expand Up @@ -766,6 +767,7 @@ pub enum ControllerActionType {
}

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct ControllerActionConfig
{
pub id: u32,
Expand Down

0 comments on commit 149ae73

Please sign in to comment.