mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-11-18 21:35:12 +00:00
WEB: Add new Models and Objects to support the new data files
This commit is contained in:
1 parent
c6207590c9
commit
a75a6c70ee
11 files changed
+333
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
namespace ScummVM\Objects;
|
||||
|
||||
/**
|
||||
* The Engine object represents a game engine supported by ScummVM
|
||||
*/
|
||||
class Engine extends DataObject
|
||||
{
|
||||
private $name;
|
||||
private $alt_name;
|
||||
private $enabled;
|
||||
|
||||
/* Article object constructor. */
|
||||
public function __construct($data)
|
||||
{
|
||||
parent::__construct($data);
|
||||
$this->name = $data['name'];
|
||||
$this->alt_name = $data['alt_name'];
|
||||
$this->enabled = $data['enabled'];
|
||||
}
|
||||
|
||||
/* Get the engine name. */
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/* Get the alternative name */
|
||||
public function getAltName()
|
||||
{
|
||||
return $this->alt_name;
|
||||
}
|
||||
|
||||
/* Get the engine enabled status. */
|
||||
public function getEnabled()
|
||||
{
|
||||
return $this->enabled;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user