internal void HandleRemoteRegisteredComponentDefinition(Connection connection, ComponentDef componentDef)
        {
            foreach (IRemoteServer server in ServerSync.RemoteServers)
                if (server.Connection != connection)
                    server.Connection["serverSync.registerComponentDefinition"](componentDef);

            if (ComponentRegistry.Instance.FindComponentDefinition(componentDef.Name) == null)
            {
                lock (ignoredComponentRegistrations)
                    ignoredComponentRegistrations.Add(componentDef.Guid);
                ComponentRegistry.Instance.Register((ComponentDefinition)componentDef);
            }
        }
Ejemplo n.º 2
0
        internal void HandleRemoteRegisteredComponentDefinition(Connection connection, ComponentDef componentDef)
        {
            foreach (IRemoteServer server in ServerSync.RemoteServers)
            {
                if (server.Connection != connection)
                {
                    server.Connection["serverSync.registerComponentDefinition"](componentDef);
                }
            }

            if (ComponentRegistry.Instance.FindComponentDefinition(componentDef.Name) == null)
            {
                lock (ignoredComponentRegistrations)
                    ignoredComponentRegistrations.Add(componentDef.Guid);
                ComponentRegistry.Instance.Register((ComponentDefinition)componentDef);
            }
        }