mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Revert "NetworkClient: handle EntityStateMessageUnreliable in host mode too"
This reverts commit 95f699cc2b
.
This commit is contained in:
parent
b16b7f8eb5
commit
f695f254a3
@ -512,6 +512,7 @@ internal static void RegisterMessageHandlers(bool hostMode)
|
|||||||
RegisterHandler<ObjectSpawnFinishedMessage>(_ => { });
|
RegisterHandler<ObjectSpawnFinishedMessage>(_ => { });
|
||||||
// host mode doesn't need state updates
|
// host mode doesn't need state updates
|
||||||
RegisterHandler<EntityStateMessage>(_ => { });
|
RegisterHandler<EntityStateMessage>(_ => { });
|
||||||
|
RegisterHandler<EntityStateMessageUnreliable>(_ => { });
|
||||||
RegisterHandler<EntityStateMessageAck>(_ => { }, false);
|
RegisterHandler<EntityStateMessageAck>(_ => { }, false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -524,6 +525,7 @@ internal static void RegisterMessageHandlers(bool hostMode)
|
|||||||
RegisterHandler<ObjectSpawnStartedMessage>(OnObjectSpawnStarted);
|
RegisterHandler<ObjectSpawnStartedMessage>(OnObjectSpawnStarted);
|
||||||
RegisterHandler<ObjectSpawnFinishedMessage>(OnObjectSpawnFinished);
|
RegisterHandler<ObjectSpawnFinishedMessage>(OnObjectSpawnFinished);
|
||||||
RegisterHandler<EntityStateMessage>(OnEntityStateMessage);
|
RegisterHandler<EntityStateMessage>(OnEntityStateMessage);
|
||||||
|
RegisterHandler<EntityStateMessageUnreliable>(OnEntityStateMessageUnreliable);
|
||||||
RegisterHandler<EntityStateMessageAck>(OnAckMessage, false);
|
RegisterHandler<EntityStateMessageAck>(OnAckMessage, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,7 +533,6 @@ internal static void RegisterMessageHandlers(bool hostMode)
|
|||||||
RegisterHandler<TimeSnapshotMessage>(OnTimeSnapshotMessage);
|
RegisterHandler<TimeSnapshotMessage>(OnTimeSnapshotMessage);
|
||||||
RegisterHandler<ChangeOwnerMessage>(OnChangeOwner);
|
RegisterHandler<ChangeOwnerMessage>(OnChangeOwner);
|
||||||
RegisterHandler<RpcMessage>(OnRPCMessage);
|
RegisterHandler<RpcMessage>(OnRPCMessage);
|
||||||
RegisterHandler<EntityStateMessageUnreliable>(OnEntityStateMessageUnreliable);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Register a handler for a message type T. Most should require authentication.</summary>
|
/// <summary>Register a handler for a message type T. Most should require authentication.</summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user