Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Commit 75b5273

Browse files
committed
Minor cleanup
1 parent b1ffda6 commit 75b5273

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Engine/Client/Implementations/LocalDataReceiver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void Init()
1414
InitReceived?.Invoke(this, EventArgs.Empty);
1515
}
1616

17-
public void AddFrame(Frame frame)
17+
public void Receive(Frame frame)
1818
{
1919
FrameReceived?.Invoke(this, frame);
2020
}

Engine/Core/LockstepSystems.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@
55
namespace Lockstep.Core
66
{
77
public sealed class LockstepSystems : Entitas.Systems, ISystems
8-
{
9-
private IFrameBuffer _frameBuffer;
10-
private readonly Contexts _contexts;
11-
8+
{
129
public long HashCode => _contexts.gameState.hashCode.value;
1310

14-
public void SetFrameBuffer(IFrameBuffer frameBuffer)
15-
{
16-
_frameBuffer = frameBuffer;
17-
}
11+
private IFrameBuffer _frameBuffer;
12+
private readonly Contexts _contexts;
1813

1914
public LockstepSystems(Contexts contexts, params IService[] additionalServices)
2015
{
@@ -36,6 +31,10 @@ public LockstepSystems(Contexts contexts, params IService[] additionalServices)
3631
Add(new HashCodeFeature(contexts, serviceContainer));
3732
}
3833

34+
public void SetFrameBuffer(IFrameBuffer frameBuffer)
35+
{
36+
_frameBuffer = frameBuffer;
37+
}
3938

4039
public void Tick()
4140
{

0 commit comments

Comments
 (0)