mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
fixes
This commit is contained in:
parent
c36642ad83
commit
9e9f9a77b6
@ -150,9 +150,10 @@ namespace DCFApixels.DragonECS.Internal
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -211,9 +211,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
_markers[i].End();
|
_markers[i].End();
|
||||||
}
|
}
|
||||||
@ -251,9 +252,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
_markers[i].End();
|
_markers[i].End();
|
||||||
}
|
}
|
||||||
@ -378,9 +380,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@ -433,9 +436,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -440,10 +440,12 @@ namespace DCFApixels.DragonECS
|
|||||||
public ref readonly T Read(int entityID) { return ref _pool.Read(entityID); }
|
public ref readonly T Read(int entityID) { return ref _pool.Read(entityID); }
|
||||||
object IEcsReadonlyPool.GetRaw(int entityID) { return _pool.Read(entityID); }
|
object IEcsReadonlyPool.GetRaw(int entityID) { return _pool.Read(entityID); }
|
||||||
|
|
||||||
|
#if !DRAGONECS_DISABLE_POOLS_EVENTS
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public void AddListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
public void AddListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public void RemoveListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
public void RemoveListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
||||||
|
#endif
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Convertors
|
#region Convertors
|
||||||
|
@ -389,10 +389,12 @@ namespace DCFApixels.DragonECS
|
|||||||
return default;
|
return default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !DRAGONECS_DISABLE_POOLS_EVENTS
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public void AddListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
public void AddListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public void RemoveListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
public void RemoveListener(IEcsPoolEventListener listener) { _pool.AddListener(listener); }
|
||||||
|
#endif
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Convertors
|
#region Convertors
|
||||||
|
Loading…
Reference in New Issue
Block a user