| 314 | } |
| 315 | |
| 316 | base_object * scene::get_object(const entity & e) |
| 317 | { |
| 318 | auto it = graph.graph_objects.find(e); |
| 319 | return (it != graph.graph_objects.end()) ? &(it->second) : nullptr; |
| 320 | } |
| 321 | |
| 322 | base_object & scene::instantiate(base_object && obj) |
| 323 | { |