Skip to content

Commit 9d925e1

Browse files
committed
Add PeeChore sync
1 parent 3152407 commit 9d925e1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using JetBrains.Annotations;
2+
using MultiplayerMod.Core.Dependency;
3+
using MultiplayerMod.Multiplayer.StateMachines.Configuration;
4+
using MultiplayerMod.Multiplayer.StateMachines.Configuration.Configurers;
5+
using MultiplayerMod.Network;
6+
7+
namespace MultiplayerMod.Multiplayer.Chores.Synchronizers;
8+
9+
[Dependency, UsedImplicitly]
10+
public class PeeChoreSynchronizer : ChoreSynchronizer<PeeChore, PeeChore.States, PeeChore.StatesInstance> {
11+
12+
protected override void Configure(IStateMachineRootConfigurer<PeeChore.States, PeeChore.StatesInstance, PeeChore, object> root) {
13+
root.Inline(new StateMachineConfigurerDsl<PeeChoreMonitor, PeeChoreMonitor.Instance>(monitor => {
14+
monitor.PreConfigure(MultiplayerMode.Client, pre => pre.Suppress(() => pre.StateMachine.pee.ToggleChore(null, null)));
15+
}));
16+
}
17+
18+
}

0 commit comments

Comments
 (0)