mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 13:11:53 +00:00
Mouse picking
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user