Skip to content

Commit

Permalink
Add PeeChore sync
Browse files Browse the repository at this point in the history
  • Loading branch information
polycone committed Aug 26, 2024
1 parent 3152407 commit 46d5771
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using JetBrains.Annotations;
using MultiplayerMod.Core.Dependency;
using MultiplayerMod.Multiplayer.StateMachines.Configuration;
using MultiplayerMod.Multiplayer.StateMachines.Configuration.Configurers;

namespace MultiplayerMod.Multiplayer.Chores.Synchronizers;

[Dependency, UsedImplicitly]
public class PeeChoreSynchronizer : ChoreSynchronizer<PeeChore, PeeChore.States, PeeChore.StatesInstance> {

protected override void Configure(IStateMachineRootConfigurer<PeeChore.States, PeeChore.StatesInstance, PeeChore, object> root) {
root.Inline(new StateMachineConfigurerDsl<PeeChoreMonitor, PeeChoreMonitor.Instance>(monitor => {
monitor.PreConfigure(MultiplayerMode.Client, pre => pre.Suppress(() => pre.StateMachine.pee.ToggleChore(null, null)));
}));
}

}

0 comments on commit 46d5771

Please sign in to comment.