/// <summary> /// Try to get the component dependency tracker for a given component type. This call only succeeds if you /// previously used DeclareComponentDependencyTracking for this particular component type. /// </summary> /// <param name="typeIndex">The type index of the component type to get the tracker for.</param> /// <param name="tracker">The tracker associated with the component type.</param> /// <returns>True if there is a component dependency tracker, false otherwise.</returns> public bool TryGetComponentDependencyTracker(int typeIndex, out DependencyTracker tracker) => MappingSystem.Dependencies.TryGetComponentDependencyTracker(typeIndex, out tracker);
/// <summary> /// Try to get the component dependency tracker for a given component type. This call only succeeds if you /// previously used DeclareComponentDependencyTracking for this particular component type. /// </summary> /// <param name="tracker">The tracker associated with the component type.</param> /// <typeparam name="T">The component type to get the tracker for.</typeparam> /// <returns>True if there is a component dependency tracker, false otherwise.</returns> public bool TryGetComponentDependencyTracker <T>(out DependencyTracker tracker) where T : Component => MappingSystem.Dependencies.TryGetComponentDependencyTracker(TypeManager.GetTypeIndex <T>(), out tracker);