public static void InstallBasicClientHandlers(MessageRouter messageRouter, NetworkSystems networkSystems) { messageRouter .RegisterHandler(DefaultMessageHandlers.CreateObject(networkSystems.ObjectStore)) .RegisterHandler(DefaultMessageHandlers.DeleteObject(networkSystems.ObjectStore)) .RegisterHandler(DefaultMessageHandlers.ToObject(networkSystems.ObjectStore)); }
public static void InstallBasicClientHandlers(MessageRouter messageRouter, NetworkSystems networkSystems, IDictionary <Guid, GameObject> preExistingObjects) { messageRouter .RegisterHandler(DefaultMessageHandlers.ReplicatePreExistingObject(networkSystems.ObjectStore, preExistingObjects)) .RegisterHandler(DefaultMessageHandlers.CreateObject(networkSystems.ObjectMessageParser, networkSystems.ObjectStore)) .RegisterHandler(DefaultMessageHandlers.DeleteObject(networkSystems.ObjectStore)) .RegisterHandler(DefaultMessageHandlers.ToObject(networkSystems.ObjectMessageParser, networkSystems.ObjectStore)); }