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 9d925e1
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using JetBrains.Annotations;
using MultiplayerMod.Core.Dependency;
using MultiplayerMod.Multiplayer.StateMachines.Configuration;
using MultiplayerMod.Multiplayer.StateMachines.Configuration.Configurers;
using MultiplayerMod.Network;

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 9d925e1

Please sign in to comment.