コード例 #1
0
 protected virtual void OnComponentTypeAdded(TypeInfo obj)
 {
     ComponentTypeAdded?.Invoke(this, obj);
 }
コード例 #2
0
ファイル: EntityManager.cs プロジェクト: Ethereal77/stride
 /// <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);