/// <summary> /// Creates a new signal registry for the given type, allowing the type to be used when /// registering signals. /// </summary> /// <param name="type"> The type of the object for which the signal registry should be created </param> /// <returns> A TypeSignalRegistry for the given type. </returns> public TypeSignalRegistry Create(Type type) { var typeId = new TypeId(type, _registeredTypeRegisteries.Count); var registry = new TypeSignalRegistry(typeId); _typeLookup.Add(type, typeId); _registeredTypeRegisteries.Add(registry); return(registry); }
/// <summary> Constructor. </summary> /// <param name="registry"> The registry for which items should be added.. </param> public TypedBasedRegistry(TypeSignalRegistry registry) { _registry = registry; }