Browse Source

fix bugs introduce with the latest update

tags/Rel1
sebas77 7 years ago
parent
commit
cfa2be5d71
2 changed files with 6 additions and 2 deletions
  1. +1
    -2
      ECS/EnginesRoot.cs
  2. +5
    -0
      ECS/EntityDescriptor.cs

+ 1
- 2
ECS/EnginesRoot.cs View File

@@ -176,8 +176,7 @@ namespace Svelto.ECS

var genericTypeDefinition = interfaceType.GetGenericTypeDefinition();

_implementedInterfaceTypes.Add(genericTypeDefinition,
interfaceType.GetGenericArguments());
_implementedInterfaceTypes[genericTypeDefinition] = interfaceType.GetGenericArguments();
}
}



+ 5
- 0
ECS/EntityDescriptor.cs View File

@@ -10,6 +10,9 @@ namespace Svelto.ECS
{
public class EntityDescriptor
{
protected EntityDescriptor()
{
}
protected EntityDescriptor(INodeBuilder[] nodesToBuild)
{
_nodesToBuild = new FasterList<INodeBuilder>(nodesToBuild);
@@ -29,6 +32,8 @@ namespace Svelto.ECS
for (int index = 0; index < implementors.Length; index++)
{
var implementor = implementors[index];
if (implementor == null) continue;

if (implementor is IRemoveEntityComponent)
_removingImplementors.Add(implementor as IRemoveEntityComponent);
if (implementor is IDisableEntityComponent)


Loading…
Cancel
Save