Files
com.misaki.ao-volume/Runtime/Models/VolumeEntity.cs
2025-02-18 19:38:13 +09:00

17 lines
418 B
C#

namespace Misaki.AoVolume
{
internal readonly struct VolumeEntity
{
private const int _INVALID_INDEX = -1;
public readonly int entityIndex;
public readonly bool IsValid => entityIndex != _INVALID_INDEX;
public static readonly VolumeEntity InvalidEntity = new(_INVALID_INDEX);
public VolumeEntity(int index)
{
entityIndex = index;
}
}
}