mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 11:15:09 -05:00
- launcher version (updating launcher) - game version - content version (for catalog) - catalog version Also added checks that when the wrong content version you dont get a catalog until you update tha game. And added another check when queuing when using the wrong game version you dont get queued. (so that hunters on the wrong version cannot block the matchmaking)
40 lines
1.0 KiB
PHP
40 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Admin\Tools;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SaveVersioningRequest extends FormRequest
|
|
{
|
|
public string $launcherVersion;
|
|
|
|
public string $gameVersion;
|
|
|
|
public string $contentVersion;
|
|
|
|
public string $catalogVersion;
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'launcherVersion' => 'required|string',
|
|
'gameVersion' => 'required|string',
|
|
'contentVersion' => 'required|string',
|
|
'catalogVersion' => 'required|string',
|
|
];
|
|
}
|
|
|
|
protected function passedValidation()
|
|
{
|
|
$this->launcherVersion = $this->input('launcherVersion');
|
|
$this->gameVersion = $this->input('gameVersion');
|
|
$this->contentVersion = $this->input('contentVersion');
|
|
$this->catalogVersion = $this->input('catalogVersion');
|
|
}
|
|
}
|