Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2021-06-21 00:00:00Z and 2021-06-22 00:00:00Z
Avatar
unexploredtest 2021-06-21 07:49:31Z
Why do we have two "input.h"?
Avatar
one for the class one for the interface
09:38
I think, thats at least how other components are made
Avatar
Avatar
fokkonaut
one for the class one for the interface
unexploredtest 2021-06-21 10:21:13Z
Aha I see,
10:21
thx
Avatar
np
🙏 1
Avatar
Avatar
fokkonaut
one for the class one for the interface
unexploredtest 2021-06-21 10:27:21Z
So, the interface one obtains the information that exists/happens on system and the class one states how to deal with it? (edited)
Avatar
The interface has virtual functions, which can be accessed from other parts of the code that dont directly work with it
10:28
e.g. CServer and IServer
10:29
CServer is the class that handles everything and IServer the interface, in some parts of the code there is only the IServer available with virtual calls to the CServer class
Avatar
unexploredtest 2021-06-21 10:30:44Z
Aha now it sinked,
10:30
Thank you
Exported 13 message(s)