style: drop redundant type qualifiers, use explicit types (IDE cleanup)

Pure formatting from the IDE's code cleanup: remove redundant ClassName./namespace qualifiers and replace var with explicit types. No behavior change.
This commit is contained in:
MDietermann
2026-06-03 16:26:32 +02:00
parent 102d8166aa
commit 9193df2710
6 changed files with 18 additions and 18 deletions

View File

@@ -4,16 +4,16 @@ public sealed class Chunk
{
public const int Size = 16;
private readonly ushort[] _ids = new ushort[Chunk.Size * Chunk.Size * Chunk.Size];
private readonly ushort[] _ids = new ushort[Size * Size * Size];
public ushort this[int x, int y, int z]
{
get => this._ids[Chunk.Index(x, y, z)];
set => this._ids[Chunk.Index(x, y, z)] = value;
get => this._ids[Index(x, y, z)];
set => this._ids[Index(x, y, z)] = value;
}
public static bool InBounds(int x, int y, int z) =>
x is >= 0 and < Chunk.Size && y is >= 0 and < Chunk.Size && z is >= 0 and < Chunk.Size;
x is >= 0 and < Size && y is >= 0 and < Size && z is >= 0 and < Size;
private static int Index(int x, int y, int z) => (x * Chunk.Size + y) * Chunk.Size + z;
private static int Index(int x, int y, int z) => (x * Size + y) * Size + z;
}