You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
484 B
22 lines
484 B
__all__ = ("A2SProtocol",)
|
|
|
|
|
|
from typing import Any, Optional
|
|
|
|
from .byteio import ByteReader
|
|
|
|
|
|
class A2SProtocol:
|
|
@staticmethod
|
|
def serialize_request(challenge: int) -> bytes:
|
|
raise NotImplemented
|
|
|
|
@staticmethod
|
|
def validate_response_type(response_type: int) -> bool:
|
|
raise NotImplemented
|
|
|
|
@staticmethod
|
|
def deserialize_response(
|
|
reader: ByteReader, response_type: int, ping: Optional[float]
|
|
) -> Any:
|
|
raise NotImplemented
|
|
|