Added new Admin Tool page to manage the different versions we need to control. These are:

- 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)
This commit is contained in:
Vari
2024-09-04 22:06:51 +02:00
parent 55f8f94f16
commit dfbb8f34c0
16 changed files with 309 additions and 12 deletions

View File

@@ -0,0 +1,39 @@
<?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');
}
}