Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2021-07-03 00:00:00Z and 2021-07-04 00:00:00Z
Avatar
@Teectac I think there's only one call to this method in the whole codebase, polymorphism or no
Avatar
insert thunder sounds
Avatar
Avatar
jxsl13
0.6 is end of life, please move on to 0.7 😀
😼
Avatar
Indeed, this is the call i'm looking for when searching for references in the screenshot above Instead i find 20 homonymous method i am not interested in
Avatar
that's more a problem of your code navigation skills than the problem of the code base.
19:18
as those OnMessage functions in their respective context to explain what they do. they do stuff when receiving a specific message. (edited)
19:21
you may want to use VS Code and install some C++ extension which may help with your navigation problem a little bit. (I guess it was holding either alt or ctrl and clicking on the function names in order to go to the function definition or right clicking on the function definitions and select go to definition)
19:22
You could also look in the header files to see the class' member variables and their respective type definitions in order to find out whether the type that you are looking for is actually calling the OnMessage function. (edited)
Avatar
Find references is better in visual studio, its docked and you can go to each call with a single click instead of expanding the line mentioning the filename every time It still does not differentiate between actual calls and irrelevant homonymous methods though I wish there was a better extension but thats all there is
21:07
hehe
21:07
teeworlds 0.7 + human brain
21:07
= win
21:07
I guess in the time this conversation was held one could have looked through 20 function calls
21:07
or references
Exported 15 message(s)