refactor(streaming): extract the update frame
This commit is contained in:
parent
4e4aac2c5a
commit
0bc9fda9de
13 changed files with 912 additions and 184 deletions
|
|
@ -25,7 +25,8 @@ namespace AcDream.App.Physics;
|
|||
/// </summary>
|
||||
internal sealed class LiveEntityNetworkUpdateController
|
||||
: ILiveEntityNetworkUpdateSink,
|
||||
ILiveEntitySameGenerationUpdateSink
|
||||
ILiveEntitySameGenerationUpdateSink,
|
||||
ILocalPlayerLandblockSource
|
||||
{
|
||||
private readonly LiveEntityRuntime _liveEntities;
|
||||
private readonly ClientObjectTable _objects;
|
||||
|
|
@ -72,6 +73,9 @@ internal sealed class LiveEntityNetworkUpdateController
|
|||
internal uint? LastLivePlayerLandblockId =>
|
||||
_authorityGate.LastLivePlayerLandblockId;
|
||||
|
||||
uint? ILocalPlayerLandblockSource.LastKnownLandblockId =>
|
||||
LastLivePlayerLandblockId;
|
||||
|
||||
public LiveEntityNetworkUpdateController(
|
||||
LiveEntityRuntime liveEntities,
|
||||
ClientObjectTable objects,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue