mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
more type hints
This commit is contained in:
parent
376d7e79ca
commit
4f617d12d4
11 changed files with 700 additions and 546 deletions
|
|
@ -8,60 +8,17 @@ namespace Demostf\API\Demo;
|
|||
* HL2 demo metadata.
|
||||
*/
|
||||
class Header {
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $version;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $protocol;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $server;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $nick;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $map;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $game;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
protected $duration;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $ticks;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $frames;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $sigon;
|
||||
protected string $type;
|
||||
protected int $version;
|
||||
protected int $protocol;
|
||||
protected string $server;
|
||||
protected string $nick;
|
||||
protected string $map;
|
||||
protected string $game;
|
||||
protected float $duration;
|
||||
protected int $ticks;
|
||||
protected int $frames;
|
||||
protected int $sigon;
|
||||
|
||||
public function __construct(
|
||||
string $type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue