readded team plugins with proper names
added empty files for replacing old files
This commit is contained in:
61
application/plugins/Dedimania/RecordData.php
Normal file
61
application/plugins/Dedimania/RecordData.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
namespace Dedimania;
|
||||
|
||||
/**
|
||||
* ManiaControl Dedimania-Plugin Record DataStructure
|
||||
*
|
||||
* @author kremsy and steeffeen
|
||||
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
use ManiaControl\Formatter;
|
||||
|
||||
class RecordData {
|
||||
public $nullRecord = false;
|
||||
public $login = '';
|
||||
public $nickName = '';
|
||||
public $best = -1;
|
||||
public $rank = -1;
|
||||
public $maxRank = -1;
|
||||
public $checkpoints = '';
|
||||
public $newRecord = false;
|
||||
public $vReplay = '';
|
||||
public $top1GReplay = '';
|
||||
|
||||
/**
|
||||
* Construct a Record by a given Record Array
|
||||
*
|
||||
* @param $record
|
||||
*/
|
||||
public function __construct($record) {
|
||||
if (!$record) {
|
||||
$this->nullRecord = true;
|
||||
return;
|
||||
}
|
||||
|
||||
$this->login = $record['Login'];
|
||||
$this->nickName = Formatter::stripDirtyCodes($record['NickName']);
|
||||
$this->best = $record['Best'];
|
||||
$this->rank = $record['Rank'];
|
||||
$this->maxRank = $record['MaxRank'];
|
||||
$this->checkpoints = $record['Checks'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new Record via it's properties
|
||||
*
|
||||
* @param $login
|
||||
* @param $nickName
|
||||
* @param $best
|
||||
* @param $checkpoints
|
||||
* @param bool $newRecord
|
||||
*/
|
||||
public function constructNewRecord($login, $nickName, $best, $checkpoints, $newRecord = false) {
|
||||
$this->nullRecord = false;
|
||||
$this->login = $login;
|
||||
$this->nickName = $nickName;
|
||||
$this->best = $best;
|
||||
$this->checkpoints = $checkpoints;
|
||||
$this->newRecord = $newRecord;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user