mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-18 13:37:44 +01:00
Apply API renames.
This commit is contained in:
parent
748c324acf
commit
7be283ca30
7 changed files with 16 additions and 16 deletions
|
|
@ -43,7 +43,7 @@ public class StateEditor(
|
|||
Glamourer.Log.Verbose(
|
||||
$"Set model id in state {state.Identifier.Incognito(null)} from {old} to {modelId}. [Affecting {actors.ToLazyString("nothing")}.]");
|
||||
StateChanged.Invoke(StateChangeType.Model, source, state, actors, null);
|
||||
StateUpdated.Invoke(StateUpdateType.ModelChange, actors);
|
||||
StateUpdated.Invoke(StateFinalizationType.ModelChange, actors);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
@ -421,7 +421,7 @@ public class StateEditor(
|
|||
$"Applied design to {state.Identifier.Incognito(null)}. [Affecting {actors.ToLazyString("nothing")}.]");
|
||||
StateChanged.Invoke(StateChangeType.Design, state.Sources[MetaIndex.Wetness], state, actors, null); // FIXME: maybe later
|
||||
if(settings.SendStateUpdate)
|
||||
StateUpdated.Invoke(StateUpdateType.DesignApplied, actors);
|
||||
StateUpdated.Invoke(StateFinalizationType.DesignApplied, actors);
|
||||
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ public class StateListener : IDisposable
|
|||
|
||||
_objects.Update();
|
||||
if (_objects.TryGetValue(identifier, out var actors) && actors.Valid)
|
||||
_stateUpdated.Invoke(StateUpdateType.Gearset, actors);
|
||||
_stateUpdated.Invoke(StateFinalizationType.Gearset, actors);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ public sealed class StateManager(
|
|||
StateChanged.Invoke(StateChangeType.Reset, source, state, actors, null);
|
||||
// only invoke if we define this reset call as the final call in our state update.
|
||||
if(stateUpdate)
|
||||
StateUpdated.Invoke(StateUpdateType.Revert, actors);
|
||||
StateUpdated.Invoke(StateFinalizationType.Revert, actors);
|
||||
}
|
||||
|
||||
public void ResetAdvancedState(ActorState state, StateSource source, uint key = 0)
|
||||
|
|
@ -306,7 +306,7 @@ public sealed class StateManager(
|
|||
$"Reset advanced customization and dye state of {state.Identifier.Incognito(null)} to game base. [Affecting {actors.ToLazyString("nothing")}.]");
|
||||
StateChanged.Invoke(StateChangeType.Reset, source, state, actors, null);
|
||||
// Update that we have completed a full operation. (We can do this directly as nothing else is linked)
|
||||
StateUpdated.Invoke(StateUpdateType.RevertAdvanced, actors);
|
||||
StateUpdated.Invoke(StateFinalizationType.RevertAdvanced, actors);
|
||||
}
|
||||
|
||||
public void ResetCustomize(ActorState state, StateSource source, uint key = 0)
|
||||
|
|
@ -325,7 +325,7 @@ public sealed class StateManager(
|
|||
Glamourer.Log.Verbose(
|
||||
$"Reset customization state of {state.Identifier.Incognito(null)} to game base. [Affecting {actors.ToLazyString("nothing")}.]");
|
||||
// Update that we have completed a full operation. (We can do this directly as nothing else is linked)
|
||||
StateUpdated.Invoke(StateUpdateType.RevertCustomize, actors);
|
||||
StateUpdated.Invoke(StateFinalizationType.RevertCustomize, actors);
|
||||
}
|
||||
|
||||
public void ResetEquip(ActorState state, StateSource source, uint key = 0)
|
||||
|
|
@ -376,7 +376,7 @@ public sealed class StateManager(
|
|||
Glamourer.Log.Verbose(
|
||||
$"Reset equipment state of {state.Identifier.Incognito(null)} to game base. [Affecting {actors.ToLazyString("nothing")}.]");
|
||||
// Update that we have completed a full operation. (We can do this directly as nothing else is linked)
|
||||
StateUpdated.Invoke(StateUpdateType.RevertEquipment, actors);
|
||||
StateUpdated.Invoke(StateFinalizationType.RevertEquipment, actors);
|
||||
}
|
||||
|
||||
public void ResetStateFixed(ActorState state, bool respectManualPalettes, uint key = 0)
|
||||
|
|
@ -469,7 +469,7 @@ public sealed class StateManager(
|
|||
|| CustomizeArray.Compare(actor.Model.GetCustomize(), state.ModelData.Customize).RequiresRedraw(), false);
|
||||
StateChanged.Invoke(StateChangeType.Reapply, source, state, data, null);
|
||||
if(stateUpdate)
|
||||
StateUpdated.Invoke(StateUpdateType.Reapply, data);
|
||||
StateUpdated.Invoke(StateFinalizationType.Reapply, data);
|
||||
}
|
||||
|
||||
/// <summary> Automation variant for reapply, to fire the correct StateUpdateType once reapplied. </summary>
|
||||
|
|
@ -490,7 +490,7 @@ public sealed class StateManager(
|
|||
|| CustomizeArray.Compare(actor.Model.GetCustomize(), state.ModelData.Customize).RequiresRedraw(), false);
|
||||
StateChanged.Invoke(StateChangeType.Reapply, source, state, data, null);
|
||||
// invoke the automation update based on what reset is.
|
||||
StateUpdated.Invoke(wasReset ? StateUpdateType.RevertAutomation : StateUpdateType.ReapplyAutomation, data);
|
||||
StateUpdated.Invoke(wasReset ? StateFinalizationType.RevertAutomation : StateFinalizationType.ReapplyAutomation, data);
|
||||
}
|
||||
|
||||
public void DeleteState(ActorIdentifier identifier)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue