View Demo
·
Report Bug
·
Request Feature
The project is a simple package made for C#/.NET Source Query Requests. Main features are the default requests that can also be found on the source query documentation in the Valve developer community wiki. For a list of implemented requests see the roadmap below.
First download the nuget package and import the namespace Okolni.Source.Query
which is the main namespace. After that you can use the project as in the code example below. You create a query connection with an ip and a port and after connecting you can get started with your requests.
IQueryConnection conn = new QueryConnection();
conn.Host = "127.0.0.1"; // IP
conn.Port = 27015; // Port
conn.Connect(); // Create the initial connection
var info = conn.GetInfo(); // Get the Server info
var players = conn.GetPlayers(); // Get the Player info
var rules = conn.GetRules(); // Get the Rules
For an example view the demo project Demo
Implemented so far:
Missing at the moment:
Also see the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the LGPL-3.0 License. See LICENSE
for more information.
Florian Adler - @florian2406
Project Link: https://github.com/Florian2406/Okolni-Source-Ouery