-void DTrainDrawer::BuildPaths() {
-#if 0
- int count = g_FuncTable.m_pfnGetEntityCount();
-
- DEntity e;
-
- for(int i = 0; i < count; i++) {
- entity_s* ent = (entity_s*)g_FuncTable.m_pfnGetEntityHandle(i);
+class EntityBuildPaths
+{
+ mutable DEntity e;
+ DTrainDrawer& drawer;
+public:
+ EntityBuildPaths(DTrainDrawer& drawer) : drawer(drawer)
+ {
+ }
+ void operator()(scene::Instance& instance) const
+ {