RU
games/dmmotor / src / Dm / Texture.php · commit 9d248a4
<?php/* * dmmotor — a wall texture made of patches (texture_t of r_data.c). * Copyright (C) 1993-1996 by id Software, Inc.; PHP port for dmmotor. GPL v2 (see LICENSE). */namespace App\Dm;final class Texture{    /** @var list<array{0:int,1:int,2:int}> [origin x, origin y, patch lump] */    public array $parts = [];    /** @var list<string> opaque columns: `height` palette indexes each (holes are 0) */    public array $columns = [];    /** @var list<list<array{0:int,1:string}>> the posts of each column, for masked (see-through) walls */    public array $posts = [];    public bool $built = false;    public function __construct(public string $name, public int $width, public int $height)    {    }}