Initial Commit
This commit is contained in:
commit
ddf09fe00c
113 changed files with 187148 additions and 0 deletions
18
app/Http/Livewire/GameComponent.php
Normal file
18
app/Http/Livewire/GameComponent.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Game\GameService;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
abstract class GameComponent extends Component
|
||||
{
|
||||
/**
|
||||
* Get the game service object
|
||||
*/
|
||||
public function getServiceProperty() : GameService
|
||||
{
|
||||
return app()->make(GameService::class);
|
||||
}
|
||||
}
|
||||
Reference in a new issue