mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-07 18:56:00 -05:00
35 lines
749 B
PHP
35 lines
749 B
PHP
<?php
|
|
|
|
namespace App\Enums\Game;
|
|
|
|
enum Faction: string
|
|
{
|
|
case None = 'None';
|
|
case Hunter = 'Hunter';
|
|
case Runner = 'Runner';
|
|
case Emcee = 'Emcee';
|
|
|
|
/**
|
|
* @return array<Runner|Hunter>
|
|
*/
|
|
public function getCharacterList(): array {
|
|
return match ($this) {
|
|
self::Hunter => [
|
|
Hunter::Inquisitor,
|
|
Hunter::Stalker,
|
|
Hunter::Poacher,
|
|
Hunter::Mass
|
|
],
|
|
self::Runner => [
|
|
Runner::Smoke,
|
|
Runner::Dash,
|
|
Runner::Switch,
|
|
Runner::Ghost,
|
|
Runner::Sawbones,
|
|
Runner::Ink,
|
|
],
|
|
default => [],
|
|
};
|
|
}
|
|
}
|