|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- namespace Svelto.ECS
- {
- public class MixedEntityDescriptor<T>:IEntityDescriptor where T : class, IEntityViewBuilder, new()
- {
- static MixedEntityDescriptor()
- {
- _entityViewsToBuild = new IEntityViewBuilder[] {new T()};
- }
-
- public IEntityViewBuilder[] entityViewsToBuild
- {
- get { return _entityViewsToBuild; }
- }
-
- static readonly IEntityViewBuilder[] _entityViewsToBuild;
- }
-
- public class MixedEntityDescriptor<T, U> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
- where U : class, IEntityViewBuilder, new()
- {
- static MixedEntityDescriptor()
- {
- _entityViewsToBuild = new IEntityViewBuilder[] {new T(), new U()};
- }
-
- public IEntityViewBuilder[] entityViewsToBuild
- {
- get { return _entityViewsToBuild; }
- }
-
- static readonly IEntityViewBuilder[] _entityViewsToBuild;
- }
-
- public class MixedEntityDescriptor<T, U, V> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
- where U : class, IEntityViewBuilder, new()
- where V : class, IEntityViewBuilder, new()
- {
- static MixedEntityDescriptor()
- {
- _entityViewsToBuild = new IEntityViewBuilder[] {new T(), new U(), new V()};
- }
-
- public IEntityViewBuilder[] entityViewsToBuild
- {
- get { return _entityViewsToBuild; }
- }
-
- static readonly IEntityViewBuilder[] _entityViewsToBuild;
- }
-
- public class MixedEntityDescriptor<T, U, V, W> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
- where U : class, IEntityViewBuilder, new()
- where V : class, IEntityViewBuilder, new()
- where W : class, IEntityViewBuilder, new()
- {
- static MixedEntityDescriptor()
- {
- _entityViewsToBuild = new IEntityViewBuilder[] {new T(), new U(), new V(), new W()};
- }
-
- public IEntityViewBuilder[] entityViewsToBuild
- {
- get { return _entityViewsToBuild; }
- }
-
- static readonly IEntityViewBuilder[] _entityViewsToBuild;
- }
-
- public class MixedEntityDescriptor<T, U, V, W, X> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
- where U : class, IEntityViewBuilder, new()
- where V : class, IEntityViewBuilder, new()
- where W : class, IEntityViewBuilder, new()
- where X : class, IEntityViewBuilder, new()
- {
- static MixedEntityDescriptor()
- {
- _entityViewsToBuild = new IEntityViewBuilder[] {new T(), new U(), new V(), new W(), new X()};
- }
-
- public IEntityViewBuilder[] entityViewsToBuild
- {
- get { return _entityViewsToBuild; }
- }
-
- static readonly IEntityViewBuilder[] _entityViewsToBuild;
- }
-
- public class MixedEntityDescriptor<T, U, V, W, X, Y> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
- where U : class, IEntityViewBuilder, new()
- where V : class, IEntityViewBuilder, new()
- where W : class, IEntityViewBuilder, new()
- where X : class, IEntityViewBuilder, new()
- where Y : class, IEntityViewBuilder, new()
- {
- static MixedEntityDescriptor()
- {
- _entityViewsToBuild = new IEntityViewBuilder[] {new T(), new U(), new V(), new W(), new X(), new Y()};
- }
-
- public IEntityViewBuilder[] entityViewsToBuild
- {
- get { return _entityViewsToBuild; }
- }
-
- static readonly IEntityViewBuilder[] _entityViewsToBuild;
- }
- }
|