Source-Python-Dev-Team / Source.Python

This plugin aims to use boost::python and create an easily accessible wrapper around the Source Engine API for scripter use.
http://forums.sourcepython.com
GNU General Public License v3.0
164 stars 32 forks source link

Update server functions for latest tf2 sdk branch #411

Closed laurirasanen closed 2 years ago

laurirasanen commented 3 years ago

tf2 branch for hl2sdk updated recently. Some members in IServer and IVEngineServer have changed.

CookStar commented 2 years ago

Is it necessary to export IServer::GetPublicAddress?

Ayuto commented 2 years ago

No, we already have a Python function for it. Moreover, we would need to export netadr_t to actually be able to use it. I also tend to simply remove IsInternalBuild as it should always return True for us. Anyways, thanks for the PR! I you update the PR, I would like to merge it. Otherwise I'm going to make the changes on my own tomorrow.

laurirasanen commented 2 years ago

Thanks for the feedback. I've removed the extra functions.

Ayuto commented 2 years ago

Thank you!