Browse Source

rename functions

tags/Rel25b
sebas77 6 years ago
parent
commit
ed3d521d93
4 changed files with 7 additions and 4 deletions
  1. +1
    -1
      Svelto.Common
  2. +4
    -1
      Svelto.ECS/DataStructures/TypeSafeDictionary.cs
  3. +1
    -1
      Svelto.ECS/EntityViewsDB.cs
  4. +1
    -1
      Svelto.ECS/IEntityViewsDB.cs

+ 1
- 1
Svelto.Common

@@ -1 +1 @@
Subproject commit b333fcd47178138a48602493fa21665ca95e1549
Subproject commit a1f5f55c8b28f66ed033fa02c425dfa16c3c30e6

+ 4
- 1
Svelto.ECS/DataStructures/TypeSafeDictionary.cs View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Svelto.DataStructures;
using Svelto.DataStructures.Experimental;
using Svelto.Utilities;

namespace Svelto.ECS.Internal
@@ -135,7 +136,9 @@ namespace Svelto.ECS.Internal
public uint FindElementIndex(int entityGidEntityId)
{
uint findIndex;
if (FindIndex(entityGidEntityId, out findIndex) == false) throw new Exception("");
if (FindIndex(entityGidEntityId, out findIndex) == false)
throw new Exception("Entity not found in this group");

return findIndex;
}


+ 1
- 1
Svelto.ECS/EntityViewsDB.cs View File

@@ -52,7 +52,7 @@ namespace Svelto.ECS.Internal
return ((TypeSafeDictionary<T>)typeSafeDictionary).GetFasterValuesBuffer(out count);
}

public T[] QueryEntities<T>(EGID entityGID, out uint index) where T : IEntityStruct
public T[] QueryEntitiesAndIndex<T>(EGID entityGID, out uint index) where T : IEntityStruct
{
TypeSafeDictionary<T> casted;
if (!FindSafeDictionary(entityGID, out casted))


+ 1
- 1
Svelto.ECS/IEntityViewsDB.cs View File

@@ -33,7 +33,7 @@ namespace Svelto.ECS
//to use with EntityViews, EntityStructs and EntityViewStructs
T[] QueryEntities<T>(out int count) where T : IEntityStruct;
T[] QueryEntities<T>(int group, out int count) where T : IEntityStruct;
T[] QueryEntities<T>(EGID entityGID, out uint index) where T : IEntityStruct;
T[] QueryEntitiesAndIndex<T>(EGID entityGid, out uint index) where T : IEntityStruct;

//to use with EntityViews, EntityStructs and EntityViewStructs
void ExecuteOnEntity<T, W>(EGID egid, ref W value, ActionRef<T, W> action) where T : IEntityStruct;


Loading…
Cancel
Save