Files
City10/app/Console/Commands/CityReport.php
T
marcocosta10000 a620f83dd8 feat(city): add player marketplace, mission journal, character customization and presence
- Player-to-player marketplace with listings, buying and selling
- Mission system with progress tracking and money rewards
- Character appearance customization (skin, hair, face, beard, accessory)
- Multiplayer presence feed showing nearby citizens in near-real-time
- Admin world dashboard with live platform metrics
- Bus and train transportation with temporary ride state
- Mobile joystick controls and minimap HUD
- Education bonus applied to work salary
2026-10-17 22:51:20 -03:00

57 lines
1.9 KiB
PHP

<?php
namespace App\Console\Commands;
use App\Http\Controllers\Web\Admin\AdminWorldController;
use Illuminate\Console\Command;
/**
* Prints a one-shot world metrics report for operators and CI logs.
*/
class CityReport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'city:report';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Print world metrics (citizens, economy, market, missions)';
/**
* Execute the console command.
*/
public function handle(): int
{
$metrics = app(AdminWorldController::class)->metrics();
$this->info('City10 world report');
$this->line('Users: '.$metrics['users']['total']
.' (pending '.$metrics['users']['pending']
.', active '.$metrics['users']['active']
.', banned '.$metrics['users']['banned'].')');
$this->line('Cities: '.$metrics['cities']);
$this->line('Characters: '.$metrics['characters']['total']
.' (online '.$metrics['characters']['online']
.', hospital '.$metrics['characters']['hospitalized']
.', avg health '.$metrics['characters']['avg_health']
.', money '.$metrics['characters']['total_money'].')');
$this->line('World: '.$metrics['world']['stores'].' stores, '
.$metrics['world']['houses_complete'].' houses, '
.$metrics['world']['jobs'].' jobs, '
.$metrics['world']['messages'].' messages, '
.$metrics['world']['transaction_volume'].' coins traded');
$this->line('Market: '.$metrics['market']['listings'].' active listings');
$this->line('Missions: '.$metrics['missions']['active'].' active, '
.$metrics['missions']['completed'].' completed');
return self::SUCCESS;
}
}