0
COMPLETADO

Namespace clash

Faikus hace 11 años actualizado por GameDraw hace 11 años 2

I am having trouble using both GameDraw and Aron Granberg's A* algorithm, because GameDraw puts "Node" and "Mathfx" into the global namespace. Both types are defined in A* as well. A* defines them in its own namespace "Pathfinding". My solution for now is to modify A*'s source code to replace each reference to Node with Pathfinding.Node, but that is cumbersome.


I think GameDraw should either use its own namespace as well or prefix Types whose names are likely to be used by other libraries as well; for example, GDNode instead of Node.

Respuesta

Respuesta
COMPLETADO

Mission accomplished :)

Iniciado

What version do you have of GameDraw?


I guess this was fixed in the Pro version! are you on the free or on the Pro as we will updating the free soon as well, please let us know.so we can check the Pro version in case you are on the Pro

I had the pro version of v0.869 f 29. I just updated to v0.869 f 34 and -- the namespace clash is gone. You guys are moving fast :-) Cheers.

Thanks :) let us now if you need anything or if you have any ideas you would like to see in GameDraw :D

Respuesta
COMPLETADO

Mission accomplished :)