2012-05-31 13:15:36 +00:00
|
|
|
<?php
|
|
|
|
class RyzomUser {
|
|
|
|
private $data;
|
|
|
|
|
|
|
|
function RyzomUser($data) {
|
|
|
|
$this->data = $data;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getID() {
|
2012-12-10 14:07:13 +00:00
|
|
|
return $this->data["id"];
|
2012-05-31 13:15:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getLang() {
|
|
|
|
return $this->data['lang'];
|
|
|
|
}
|
|
|
|
|
|
|
|
function isIG() {
|
|
|
|
return $this->data['ig'];
|
|
|
|
}
|
|
|
|
|
|
|
|
function getParam($p) {
|
|
|
|
return $this->data[$p];
|
|
|
|
}
|
2012-06-03 13:04:04 +00:00
|
|
|
|
|
|
|
function getRace() {
|
2013-02-15 13:51:41 +00:00
|
|
|
return 'r_'.$this->data['race'];
|
2012-06-03 13:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getCiv() {
|
2013-02-15 13:51:41 +00:00
|
|
|
return 'c_'.$this->data['civ'];
|
2012-06-03 13:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getCult() {
|
2013-02-15 13:51:41 +00:00
|
|
|
return 'c_'.$this->data['cult'];
|
2012-06-03 13:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getName() {
|
2012-12-10 14:07:13 +00:00
|
|
|
return $this->data['char_name'];
|
2012-06-03 13:04:04 +00:00
|
|
|
}
|
2012-05-31 13:15:36 +00:00
|
|
|
}
|
|
|
|
?>
|