mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 10:24:07 +02:00
no longer store weapon name per kill
This commit is contained in:
parent
00b547028f
commit
89687f6a76
8 changed files with 12 additions and 28 deletions
|
|
@ -10,15 +10,13 @@ class Kill {
|
|||
private int $attackerId;
|
||||
private int $assisterId;
|
||||
private int $victimId;
|
||||
private string $weapon;
|
||||
|
||||
public function __construct(int $id, int $demoId, int $attackerId, int $assisterId, int $victimId, string $weapon) {
|
||||
public function __construct(int $id, int $demoId, int $attackerId, int $assisterId, int $victimId) {
|
||||
$this->id = $id;
|
||||
$this->demoId = $demoId;
|
||||
$this->attackerId = $attackerId;
|
||||
$this->assisterId = $assisterId;
|
||||
$this->victimId = $victimId;
|
||||
$this->weapon = $weapon;
|
||||
}
|
||||
|
||||
public function getId(): int {
|
||||
|
|
@ -40,8 +38,4 @@ class Kill {
|
|||
public function getVictimId(): int {
|
||||
return $this->victimId;
|
||||
}
|
||||
|
||||
public function getWeapon(): string {
|
||||
return $this->weapon;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,13 +8,11 @@ class ParsedKill {
|
|||
private int $attackerDemoId;
|
||||
private int $assisterDemoId;
|
||||
private int $victimDemoId;
|
||||
private string $weapon;
|
||||
|
||||
public function __construct(int $attackerDemoId, int $assisterDemoId, int $victimDemoId, string $weapon) {
|
||||
public function __construct(int $attackerDemoId, int $assisterDemoId, int $victimDemoId) {
|
||||
$this->attackerDemoId = $attackerDemoId;
|
||||
$this->assisterDemoId = $assisterDemoId;
|
||||
$this->victimDemoId = $victimDemoId;
|
||||
$this->weapon = $weapon;
|
||||
}
|
||||
|
||||
public function getAttackerDemoId(): int {
|
||||
|
|
@ -28,8 +26,4 @@ class ParsedKill {
|
|||
public function getVictimDemoId(): int {
|
||||
return $this->victimDemoId;
|
||||
}
|
||||
|
||||
public function getWeapon(): string {
|
||||
return $this->weapon;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue