Mouse picking

This commit is contained in:
Simon Lübeß
2022-05-30 14:06:52 +02:00
parent 47fdce0a7e
commit 8db2ce1d05
6 changed files with 72 additions and 28 deletions
+2 -2
View File
@@ -161,10 +161,10 @@ namespace GlitchyEngine.World
}
/// Returns the entity with the same ID and the current version. Or null, if no such entity exists.
public EcsEntity? GetCurrentVersion(EcsEntity entity)
public Result<EcsEntity> GetCurrentVersion(EcsEntity entity)
{
if(entity.Index > _entities.Count)
return null;
return .Err;
var listEntity = ref _entities[entity.Index];