1 | <?php |
||
38 | class EntityChildrenFactory |
||
39 | { |
||
40 | /** |
||
41 | * Child entities |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $childrens = array(); |
||
46 | |||
47 | /** |
||
48 | * Entity |
||
49 | * |
||
50 | * @api |
||
51 | * |
||
52 | * @param string $id |
||
53 | * @return \AframeVR\Core\Entity |
||
54 | */ |
||
55 | 7 | public function entity(string $id = 'untitled'): Entity |
|
59 | |||
60 | /** |
||
61 | * A-Frame Primitive box |
||
62 | * |
||
63 | * @param string $id |
||
64 | * @return Entity |
||
65 | */ |
||
66 | 1 | public function box(string $id = 'untitled'): Entity |
|
70 | |||
71 | /** |
||
72 | * A-Frame Primitive sphere |
||
73 | * |
||
74 | * @param string $id |
||
75 | * @return Entity |
||
76 | */ |
||
77 | 1 | public function sphere(string $id = 'untitled'): Entity |
|
81 | |||
82 | /** |
||
83 | * A-Frame Primitive cylinder |
||
84 | * |
||
85 | * @param string $id |
||
86 | * @return Entity |
||
87 | */ |
||
88 | 1 | public function cylinder(string $id = 'untitled'): Entity |
|
92 | |||
93 | /** |
||
94 | * A-Frame Primitive plane |
||
95 | * |
||
96 | * @param string $id |
||
97 | * @return Entity |
||
98 | */ |
||
99 | 4 | public function plane(string $id = 'untitled'): Entity |
|
103 | |||
104 | /** |
||
105 | * A-Frame Primitive camera |
||
106 | * |
||
107 | * @param string $id |
||
108 | * @return Entity |
||
109 | */ |
||
110 | 1 | public function camera(string $id = 'untitled'): Entity |
|
114 | |||
115 | /** |
||
116 | * A-Frame Primitive collada-model |
||
117 | * |
||
118 | * @param string $id |
||
119 | * @return Entity |
||
120 | */ |
||
121 | 1 | public function colladaModel(string $id = 'untitled'): Entity |
|
125 | |||
126 | /** |
||
127 | * A-Frame Primitive image |
||
128 | * |
||
129 | * @param string $id |
||
130 | * @return Entity |
||
131 | */ |
||
132 | 4 | public function image(string $id = 'untitled'): Entity |
|
136 | |||
137 | /** |
||
138 | * A-Frame Primitive sky |
||
139 | * |
||
140 | * @return Entity |
||
141 | */ |
||
142 | 1 | public function sky(string $id = 'untitled'): Entity |
|
146 | |||
147 | 2 | public function getChildern() |
|
151 | } |