<?php

namespace Doom\Texture;

final class ResolvedTexturePatch
{
    public function __construct(
        public readonly int $originX,
        public readonly int $originY,
        public readonly int $patchIndex,
        public readonly ?string $patchName,
        public readonly int $stepDir,
        public readonly int $colorMap,
        public readonly ?int $lumpIndex,
    ) {}

    public function isResolved(): bool
    {
        return $this->patchName !== null && $this->lumpIndex !== null;
    }
}
