Skip to content

Commit

Permalink
Update protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 22, 2024
1 parent 3916c33 commit bf70ebe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions opengsq/protocols/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,11 @@ def __parse_players(self, br: BinaryReader) -> list[Player]:
if __name__ == "__main__":
import asyncio
import json
from dataclasses import asdict

async def main_async():
# mtasa
ase = ASE(host="79.137.97.3", port=22126, timeout=10.0)
status = await ase.get_status()
print(json.dumps(asdict(status), indent=None) + "\n")
print(json.dumps(status, indent=None) + "\n")

asyncio.run(main_async())
2 changes: 2 additions & 0 deletions opengsq/responses/ase/player.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from dataclasses import asdict, dataclass


Expand Down
2 changes: 2 additions & 0 deletions opengsq/responses/ase/status.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from dataclasses import asdict, dataclass, field

from opengsq.responses.ase.player import Player
Expand Down

0 comments on commit bf70ebe

Please sign in to comment.