Esempio n. 1
0
 protected virtual void OnComponentTypeAdded(TypeInfo obj)
 {
     ComponentTypeAdded?.Invoke(this, obj);
 }
Esempio n. 2
0
 /// <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);