ComponentRegistrationBuilder(
     Type implementationType,
     Lifetime lifetime,
     List <Type> interfaceTypes = null)
     : base(implementationType, lifetime, interfaceTypes)
 {
     InterfaceTypes = InterfaceTypes ?? new List <Type>();
     InterfaceTypes.Add(typeof(MonoBehaviour));
     InterfaceTypes.Add(ImplementationType);
 }
Ejemplo n.º 2
0
 internal SystemRegistrationBuilder(
     Type implementationType,
     string worldName,
     List <Type> interfaceTypes = null)
     : base(implementationType, default, interfaceTypes)
 {
     this.worldName = worldName;
     InterfaceTypes = InterfaceTypes ?? new List <Type>();
     InterfaceTypes.Add(typeof(ComponentSystemBase));
     InterfaceTypes.Add(ImplementationType);
 }