Browse Source

it's very important that people won't use GenericEntityDescriptor and MixedEntityDescriptor directly

tags/Rel2
sebas77 6 years ago
parent
commit
5f416c0266
2 changed files with 12 additions and 12 deletions
  1. +6
    -6
      Svelto.ECS/GenericEntityDescriptor.cs
  2. +6
    -6
      Svelto.ECS/MixedEntityDescriptor.cs

+ 6
- 6
Svelto.ECS/GenericEntityDescriptor.cs View File

@@ -1,6 +1,6 @@
namespace Svelto.ECS
{
public class GenericEntityDescriptor<T>:IEntityDescriptor where T : EntityView, new()
public abstract class GenericEntityDescriptor<T>:IEntityDescriptor where T : EntityView, new()
{
static GenericEntityDescriptor()
{
@@ -16,7 +16,7 @@
}

public class GenericEntityDescriptor<T, U> : IEntityDescriptor where T : EntityView, new()
public abstract class GenericEntityDescriptor<T, U> : IEntityDescriptor where T : EntityView, new()
where U : EntityView, new()
{
static GenericEntityDescriptor()
@@ -32,7 +32,7 @@
public static readonly IEntityViewBuilder[] entityViewBuilders;
}

public class GenericEntityDescriptor<T, U, V> : IEntityDescriptor where T : EntityView, new()
public abstract class GenericEntityDescriptor<T, U, V> : IEntityDescriptor where T : EntityView, new()
where U : EntityView, new()
where V : EntityView, new()
{
@@ -49,7 +49,7 @@
public static readonly IEntityViewBuilder[] entityViewBuilders;
}

public class GenericEntityDescriptor<T, U, V, W> : IEntityDescriptor where T : EntityView, new()
public abstract class GenericEntityDescriptor<T, U, V, W> : IEntityDescriptor where T : EntityView, new()
where U : EntityView, new()
where V : EntityView, new()
where W : EntityView, new()
@@ -67,7 +67,7 @@
public static readonly IEntityViewBuilder[] entityViewBuilders;
}

public class GenericEntityDescriptor<T, U, V, W, X> : IEntityDescriptor where T : EntityView, new()
public abstract class GenericEntityDescriptor<T, U, V, W, X> : IEntityDescriptor where T : EntityView, new()
where U : EntityView, new()
where V : EntityView, new()
where W : EntityView, new()
@@ -86,7 +86,7 @@
public static readonly IEntityViewBuilder[] entityViewBuilders;
}

public class GenericEntityDescriptor<T, U, V, W, X, Y> : IEntityDescriptor where T : EntityView, new()
public abstract class GenericEntityDescriptor<T, U, V, W, X, Y> : IEntityDescriptor where T : EntityView, new()
where U : EntityView, new()
where V : EntityView, new()
where W : EntityView, new()


+ 6
- 6
Svelto.ECS/MixedEntityDescriptor.cs View File

@@ -1,6 +1,6 @@
namespace Svelto.ECS
{
public class MixedEntityDescriptor<T>:IEntityDescriptor where T : class, IEntityViewBuilder, new()
public abstract class MixedEntityDescriptor<T>:IEntityDescriptor where T : class, IEntityViewBuilder, new()
{
static MixedEntityDescriptor()
{
@@ -15,7 +15,7 @@
static readonly IEntityViewBuilder[] _entityViewsToBuild;
}

public class MixedEntityDescriptor<T, U> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
public abstract class MixedEntityDescriptor<T, U> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
where U : class, IEntityViewBuilder, new()
{
static MixedEntityDescriptor()
@@ -31,7 +31,7 @@
static readonly IEntityViewBuilder[] _entityViewsToBuild;
}

public class MixedEntityDescriptor<T, U, V> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
public abstract class MixedEntityDescriptor<T, U, V> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
where U : class, IEntityViewBuilder, new()
where V : class, IEntityViewBuilder, new()
{
@@ -48,7 +48,7 @@
static readonly IEntityViewBuilder[] _entityViewsToBuild;
}

public class MixedEntityDescriptor<T, U, V, W> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
public abstract 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()
@@ -66,7 +66,7 @@
static readonly IEntityViewBuilder[] _entityViewsToBuild;
}

public class MixedEntityDescriptor<T, U, V, W, X> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
public abstract 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()
@@ -85,7 +85,7 @@
static readonly IEntityViewBuilder[] _entityViewsToBuild;
}

public class MixedEntityDescriptor<T, U, V, W, X, Y> : IEntityDescriptor where T : class, IEntityViewBuilder, new()
public abstract 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()


Loading…
Cancel
Save