protected virtual void OnComponentTypeAdded(TypeInfo obj) { ComponentTypeAdded?.Invoke(this, obj); }
/// <summary> /// Method called when a new type of <see cref="EntityComponent"/> has been added to the <see cref="EntityManager"/>. /// Raises the event <see cref="ComponentTypeAdded"/>. /// Override in a derived class to implement a custom behavior for when a Component type has been added. /// </summary> /// <param name="componentType">The type of the Component.</param> protected virtual void OnComponentTypeAdded(TypeInfo componentType) => ComponentTypeAdded?.Invoke(this, componentType);