1 | <?php |
||
31 | final class Aframe |
||
32 | { |
||
33 | |||
34 | /** |
||
35 | * A-Frame Scenes |
||
36 | * |
||
37 | * All scenes will be in this array as Scene objects with index of custom identifier. |
||
38 | * |
||
39 | * @var array $scenes |
||
40 | */ |
||
41 | private $scenes = array(); |
||
42 | |||
43 | /** |
||
44 | * Configuration Object |
||
45 | * |
||
46 | * @var \AframeVR\Core\Config $configObj |
||
47 | */ |
||
48 | private $configObj; |
||
49 | |||
50 | /** |
||
51 | * A-Frame PHP Constructor |
||
52 | */ |
||
53 | 105 | public function __construct() |
|
58 | |||
59 | /** |
||
60 | * Get Config |
||
61 | * |
||
62 | * @return \AframeVR\Core\Config |
||
63 | */ |
||
64 | 105 | public function config() |
|
68 | |||
69 | /** |
||
70 | * Scene |
||
71 | * |
||
72 | * Work with untitled scene or scene by keyword |
||
73 | * |
||
74 | * @param string $keyword |
||
75 | * @return \AframeVR\Core\Scene |
||
76 | */ |
||
77 | 103 | public function scene(string $keyword = 'untitled'): Scene |
|
81 | } |
||
82 |