15 lines
313 B
PHP
15 lines
313 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Game\Buildings;
|
||
|
|
|
||
|
|
/** A building instance as the pure rules see it. */
|
||
|
|
final class BuildingState
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public readonly int $id,
|
||
|
|
public readonly string $type,
|
||
|
|
public readonly int $level,
|
||
|
|
public readonly int $priority = 5,
|
||
|
|
) {}
|
||
|
|
}
|