diff --git a/PyAPI/proto/Message2Clients_pb2.py b/PyAPI/proto/Message2Clients_pb2.py deleted file mode 100755 index 1fd8743..0000000 --- a/PyAPI/proto/Message2Clients_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: Message2Clients.proto -"""Generated protocol buffer code.""" -import MessageType_pb2 as MessageType__pb2 -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x15Message2Clients.proto\x12\x08protobuf\x1a\x11MessageType.proto\"\xa5\x03\n\x0eMessageOfHuman\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\r\n\x05speed\x18\x03 \x01(\x05\x12\x0c\n\x04life\x18\x04 \x01(\x05\x12\x13\n\x0bhanged_time\x18\x05 \x01(\x05\x12\"\n\x1atime_until_skill_available\x18\x06 \x01(\x01\x12\"\n\x05place\x18\x07 \x01(\x0e\x32\x13.protobuf.PlaceType\x12 \n\x04prop\x18\x08 \x01(\x0e\x32\x12.protobuf.PropType\x12\'\n\nhuman_type\x18\t \x01(\x0e\x32\x13.protobuf.HumanType\x12\x0c\n\x04guid\x18\n \x01(\x03\x12#\n\x05state\x18\x0b \x01(\x0e\x32\x14.protobuf.HumanState\x12\x12\n\nchair_time\x18\x0c \x01(\x01\x12\x13\n\x0bground_time\x18\x0e \x01(\x01\x12\x11\n\tplayer_id\x18\x0f \x01(\x03\x12\x12\n\nview_range\x18\x10 \x01(\x05\x12\x0e\n\x06radius\x18\x11 \x01(\x05\x12%\n\x04\x62uff\x18\x12 \x03(\x0e\x32\x17.protobuf.HumanBuffType\"\xdd\x02\n\x10MessageOfButcher\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\r\n\x05speed\x18\x03 \x01(\x05\x12\x0e\n\x06\x64\x61mage\x18\x04 \x01(\x05\x12\"\n\x1atime_until_skill_available\x18\x05 \x01(\x01\x12\"\n\x05place\x18\x06 \x01(\x0e\x32\x13.protobuf.PlaceType\x12 \n\x04prop\x18\x07 \x01(\x0e\x32\x12.protobuf.PropType\x12+\n\x0c\x62utcher_type\x18\x08 \x01(\x0e\x32\x15.protobuf.ButcherType\x12\x0c\n\x04guid\x18\t \x01(\x03\x12\x0f\n\x07movable\x18\n \x01(\x08\x12\x11\n\tplayer_id\x18\x0b \x01(\x03\x12\x12\n\nview_range\x18\x0c \x01(\x05\x12\x0e\n\x06radius\x18\r \x01(\x05\x12\'\n\x04\x62uff\x18\x0e \x03(\x0e\x32\x19.protobuf.ButcherBuffType\"\xb4\x01\n\rMessageOfProp\x12 \n\x04type\x18\x01 \x01(\x0e\x32\x12.protobuf.PropType\x12\t\n\x01x\x18\x02 \x01(\x05\x12\t\n\x01y\x18\x03 \x01(\x05\x12\x18\n\x10\x66\x61\x63ing_direction\x18\x04 \x01(\x01\x12\x0c\n\x04guid\x18\x05 \x01(\x03\x12\"\n\x05place\x18\x06 \x01(\x0e\x32\x13.protobuf.PlaceType\x12\x0c\n\x04size\x18\x07 \x01(\x05\x12\x11\n\tis_moving\x18\x08 \x01(\x08\"{\n\x13MessageOfPickedProp\x12 \n\x04type\x18\x01 \x01(\x0e\x32\x12.protobuf.PropType\x12\t\n\x01x\x18\x02 \x01(\x05\x12\t\n\x01y\x18\x03 \x01(\x05\x12\x18\n\x10\x66\x61\x63ing_direction\x18\x04 \x01(\x01\x12\x12\n\nmapping_id\x18\x05 \x01(\x03\"`\n\x0cMessageOfMap\x12\'\n\x03row\x18\x02 \x03(\x0b\x32\x1a.protobuf.MessageOfMap.Row\x1a\'\n\x03Row\x12 \n\x03\x63ol\x18\x01 \x03(\x0e\x32\x13.protobuf.PlaceType\"\xfc\x01\n\x0fMessageToClient\x12/\n\rhuman_message\x18\x01 \x03(\x0b\x32\x18.protobuf.MessageOfHuman\x12\x33\n\x0f\x62utcher_message\x18\x02 \x03(\x0b\x32\x1a.protobuf.MessageOfButcher\x12-\n\x0cprop_message\x18\x03 \x03(\x0b\x32\x17.protobuf.MessageOfProp\x12+\n\x0bmap_message\x18\x04 \x01(\x0b\x32\x16.protobuf.MessageOfMap\x12\'\n\ngame_state\x18\x05 \x01(\x0e\x32\x13.protobuf.GameState\"J\n\x07MoveRes\x12\x14\n\x0c\x61\x63tual_speed\x18\x01 \x01(\x03\x12\x14\n\x0c\x61\x63tual_angle\x18\x02 \x01(\x01\x12\x13\n\x0b\x61\x63t_success\x18\x03 \x01(\x08\"\x1e\n\x07\x42oolRes\x12\x13\n\x0b\x61\x63t_success\x18\x01 \x01(\x08\"P\n\x06MsgRes\x12\x14\n\x0chave_message\x18\x01 \x01(\x08\x12\x16\n\x0e\x66rom_player_id\x18\x02 \x01(\x03\x12\x18\n\x10message_received\x18\x03 \x01(\tb\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, 'Message2Clients_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _MESSAGEOFHUMAN._serialized_start = 55 - _MESSAGEOFHUMAN._serialized_end = 476 - _MESSAGEOFBUTCHER._serialized_start = 479 - _MESSAGEOFBUTCHER._serialized_end = 828 - _MESSAGEOFPROP._serialized_start = 831 - _MESSAGEOFPROP._serialized_end = 1011 - _MESSAGEOFPICKEDPROP._serialized_start = 1013 - _MESSAGEOFPICKEDPROP._serialized_end = 1136 - _MESSAGEOFMAP._serialized_start = 1138 - _MESSAGEOFMAP._serialized_end = 1234 - _MESSAGEOFMAP_ROW._serialized_start = 1195 - _MESSAGEOFMAP_ROW._serialized_end = 1234 - _MESSAGETOCLIENT._serialized_start = 1237 - _MESSAGETOCLIENT._serialized_end = 1489 - _MOVERES._serialized_start = 1491 - _MOVERES._serialized_end = 1565 - _BOOLRES._serialized_start = 1567 - _BOOLRES._serialized_end = 1597 - _MSGRES._serialized_start = 1599 - _MSGRES._serialized_end = 1679 -# @@protoc_insertion_point(module_scope) diff --git a/PyAPI/proto/Message2Clients_pb2.pyi b/PyAPI/proto/Message2Clients_pb2.pyi deleted file mode 100755 index 593cc94..0000000 --- a/PyAPI/proto/Message2Clients_pb2.pyi +++ /dev/null @@ -1,186 +0,0 @@ -import MessageType_pb2 as _MessageType_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - - -class BoolRes(_message.Message): - __slots__ = ["act_success"] - ACT_SUCCESS_FIELD_NUMBER: _ClassVar[int] - act_success: bool - def __init__(self, act_success: bool = ...) -> None: ... - - -class MessageOfButcher(_message.Message): - __slots__ = ["buff", "butcher_type", "damage", "guid", "movable", "place", "player_id", - "prop", "radius", "speed", "time_until_skill_available", "view_range", "x", "y"] - BUFF_FIELD_NUMBER: _ClassVar[int] - BUTCHER_TYPE_FIELD_NUMBER: _ClassVar[int] - DAMAGE_FIELD_NUMBER: _ClassVar[int] - GUID_FIELD_NUMBER: _ClassVar[int] - MOVABLE_FIELD_NUMBER: _ClassVar[int] - PLACE_FIELD_NUMBER: _ClassVar[int] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - PROP_FIELD_NUMBER: _ClassVar[int] - RADIUS_FIELD_NUMBER: _ClassVar[int] - SPEED_FIELD_NUMBER: _ClassVar[int] - TIME_UNTIL_SKILL_AVAILABLE_FIELD_NUMBER: _ClassVar[int] - VIEW_RANGE_FIELD_NUMBER: _ClassVar[int] - X_FIELD_NUMBER: _ClassVar[int] - Y_FIELD_NUMBER: _ClassVar[int] - buff: _containers.RepeatedScalarFieldContainer[_MessageType_pb2.ButcherBuffType] - butcher_type: _MessageType_pb2.ButcherType - damage: int - guid: int - movable: bool - place: _MessageType_pb2.PlaceType - player_id: int - prop: _MessageType_pb2.PropType - radius: int - speed: int - time_until_skill_available: float - view_range: int - x: int - y: int - def __init__(self, x: _Optional[int] = ..., y: _Optional[int] = ..., speed: _Optional[int] = ..., damage: _Optional[int] = ..., time_until_skill_available: _Optional[float] = ..., place: _Optional[_Union[_MessageType_pb2.PlaceType, str]] = ..., prop: _Optional[_Union[_MessageType_pb2.PropType, str]] = ..., - butcher_type: _Optional[_Union[_MessageType_pb2.ButcherType, str]] = ..., guid: _Optional[int] = ..., movable: bool = ..., player_id: _Optional[int] = ..., view_range: _Optional[int] = ..., radius: _Optional[int] = ..., buff: _Optional[_Iterable[_Union[_MessageType_pb2.ButcherBuffType, str]]] = ...) -> None: ... - - -class MessageOfHuman(_message.Message): - __slots__ = ["buff", "chair_time", "ground_time", "guid", "hanged_time", "human_type", "life", "place", - "player_id", "prop", "radius", "speed", "state", "time_until_skill_available", "view_range", "x", "y"] - BUFF_FIELD_NUMBER: _ClassVar[int] - CHAIR_TIME_FIELD_NUMBER: _ClassVar[int] - GROUND_TIME_FIELD_NUMBER: _ClassVar[int] - GUID_FIELD_NUMBER: _ClassVar[int] - HANGED_TIME_FIELD_NUMBER: _ClassVar[int] - HUMAN_TYPE_FIELD_NUMBER: _ClassVar[int] - LIFE_FIELD_NUMBER: _ClassVar[int] - PLACE_FIELD_NUMBER: _ClassVar[int] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - PROP_FIELD_NUMBER: _ClassVar[int] - RADIUS_FIELD_NUMBER: _ClassVar[int] - SPEED_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - TIME_UNTIL_SKILL_AVAILABLE_FIELD_NUMBER: _ClassVar[int] - VIEW_RANGE_FIELD_NUMBER: _ClassVar[int] - X_FIELD_NUMBER: _ClassVar[int] - Y_FIELD_NUMBER: _ClassVar[int] - buff: _containers.RepeatedScalarFieldContainer[_MessageType_pb2.HumanBuffType] - chair_time: float - ground_time: float - guid: int - hanged_time: int - human_type: _MessageType_pb2.HumanType - life: int - place: _MessageType_pb2.PlaceType - player_id: int - prop: _MessageType_pb2.PropType - radius: int - speed: int - state: _MessageType_pb2.HumanState - time_until_skill_available: float - view_range: int - x: int - y: int - def __init__(self, x: _Optional[int] = ..., y: _Optional[int] = ..., speed: _Optional[int] = ..., life: _Optional[int] = ..., hanged_time: _Optional[int] = ..., time_until_skill_available: _Optional[float] = ..., place: _Optional[_Union[_MessageType_pb2.PlaceType, str]] = ..., prop: _Optional[_Union[_MessageType_pb2.PropType, str]] = ..., human_type: _Optional[_Union[_MessageType_pb2.HumanType, str]] - = ..., guid: _Optional[int] = ..., state: _Optional[_Union[_MessageType_pb2.HumanState, str]] = ..., chair_time: _Optional[float] = ..., ground_time: _Optional[float] = ..., player_id: _Optional[int] = ..., view_range: _Optional[int] = ..., radius: _Optional[int] = ..., buff: _Optional[_Iterable[_Union[_MessageType_pb2.HumanBuffType, str]]] = ...) -> None: ... - - -class MessageOfMap(_message.Message): - __slots__ = ["row"] - - class Row(_message.Message): - __slots__ = ["col"] - COL_FIELD_NUMBER: _ClassVar[int] - col: _containers.RepeatedScalarFieldContainer[_MessageType_pb2.PlaceType] - def __init__( - self, col: _Optional[_Iterable[_Union[_MessageType_pb2.PlaceType, str]]] = ...) -> None: ... - ROW_FIELD_NUMBER: _ClassVar[int] - row: _containers.RepeatedCompositeFieldContainer[MessageOfMap.Row] - def __init__( - self, row: _Optional[_Iterable[_Union[MessageOfMap.Row, _Mapping]]] = ...) -> None: ... - - -class MessageOfPickedProp(_message.Message): - __slots__ = ["facing_direction", "mapping_id", "type", "x", "y"] - FACING_DIRECTION_FIELD_NUMBER: _ClassVar[int] - MAPPING_ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - X_FIELD_NUMBER: _ClassVar[int] - Y_FIELD_NUMBER: _ClassVar[int] - facing_direction: float - mapping_id: int - type: _MessageType_pb2.PropType - x: int - y: int - def __init__(self, type: _Optional[_Union[_MessageType_pb2.PropType, str]] = ..., x: _Optional[int] = ..., - y: _Optional[int] = ..., facing_direction: _Optional[float] = ..., mapping_id: _Optional[int] = ...) -> None: ... - - -class MessageOfProp(_message.Message): - __slots__ = ["facing_direction", "guid", - "is_moving", "place", "size", "type", "x", "y"] - FACING_DIRECTION_FIELD_NUMBER: _ClassVar[int] - GUID_FIELD_NUMBER: _ClassVar[int] - IS_MOVING_FIELD_NUMBER: _ClassVar[int] - PLACE_FIELD_NUMBER: _ClassVar[int] - SIZE_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - X_FIELD_NUMBER: _ClassVar[int] - Y_FIELD_NUMBER: _ClassVar[int] - facing_direction: float - guid: int - is_moving: bool - place: _MessageType_pb2.PlaceType - size: int - type: _MessageType_pb2.PropType - x: int - y: int - def __init__(self, type: _Optional[_Union[_MessageType_pb2.PropType, str]] = ..., x: _Optional[int] = ..., y: _Optional[int] = ..., facing_direction: _Optional[float] - = ..., guid: _Optional[int] = ..., place: _Optional[_Union[_MessageType_pb2.PlaceType, str]] = ..., size: _Optional[int] = ..., is_moving: bool = ...) -> None: ... - - -class MessageToClient(_message.Message): - __slots__ = ["butcher_message", "game_state", - "human_message", "map_message", "prop_message"] - BUTCHER_MESSAGE_FIELD_NUMBER: _ClassVar[int] - GAME_STATE_FIELD_NUMBER: _ClassVar[int] - HUMAN_MESSAGE_FIELD_NUMBER: _ClassVar[int] - MAP_MESSAGE_FIELD_NUMBER: _ClassVar[int] - PROP_MESSAGE_FIELD_NUMBER: _ClassVar[int] - butcher_message: _containers.RepeatedCompositeFieldContainer[MessageOfButcher] - game_state: _MessageType_pb2.GameState - human_message: _containers.RepeatedCompositeFieldContainer[MessageOfHuman] - map_message: MessageOfMap - prop_message: _containers.RepeatedCompositeFieldContainer[MessageOfProp] - def __init__(self, human_message: _Optional[_Iterable[_Union[MessageOfHuman, _Mapping]]] = ..., butcher_message: _Optional[_Iterable[_Union[MessageOfButcher, _Mapping]]] = ..., prop_message: _Optional[ - _Iterable[_Union[MessageOfProp, _Mapping]]] = ..., map_message: _Optional[_Union[MessageOfMap, _Mapping]] = ..., game_state: _Optional[_Union[_MessageType_pb2.GameState, str]] = ...) -> None: ... - - -class MoveRes(_message.Message): - __slots__ = ["act_success", "actual_angle", "actual_speed"] - ACTUAL_ANGLE_FIELD_NUMBER: _ClassVar[int] - ACTUAL_SPEED_FIELD_NUMBER: _ClassVar[int] - ACT_SUCCESS_FIELD_NUMBER: _ClassVar[int] - act_success: bool - actual_angle: float - actual_speed: int - def __init__(self, actual_speed: _Optional[int] = ..., - actual_angle: _Optional[float] = ..., act_success: bool = ...) -> None: ... - - -class MsgRes(_message.Message): - __slots__ = ["from_player_id", "have_message", "message_received"] - FROM_PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - HAVE_MESSAGE_FIELD_NUMBER: _ClassVar[int] - MESSAGE_RECEIVED_FIELD_NUMBER: _ClassVar[int] - from_player_id: int - have_message: bool - message_received: str - - def __init__(self, have_message: bool = ..., - from_player_id: _Optional[int] = ..., message_received: _Optional[str] = ...) -> None: ... diff --git a/PyAPI/proto/Message2Server_pb2.py b/PyAPI/proto/Message2Server_pb2.py deleted file mode 100755 index 0a3520e..0000000 --- a/PyAPI/proto/Message2Server_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: Message2Server.proto -"""Generated protocol buffer code.""" -import MessageType_pb2 as MessageType__pb2 -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14Message2Server.proto\x12\x08protobuf\x1a\x11MessageType.proto\"\xaf\x01\n\tPlayerMsg\x12\x11\n\tplayer_id\x18\x01 \x01(\x03\x12)\n\x0bplayer_type\x18\x02 \x01(\x0e\x32\x14.protobuf.PlayerType\x12)\n\nhuman_type\x18\x03 \x01(\x0e\x32\x13.protobuf.HumanTypeH\x00\x12-\n\x0c\x62utcher_type\x18\x04 \x01(\x0e\x32\x15.protobuf.ButcherTypeH\x00\x42\n\n\x08job_type\"I\n\x07MoveMsg\x12\x11\n\tplayer_id\x18\x01 \x01(\x03\x12\r\n\x05\x61ngle\x18\x02 \x01(\x01\x12\x1c\n\x14time_in_milliseconds\x18\x03 \x01(\x03\"C\n\x07PickMsg\x12\x11\n\tplayer_id\x18\x01 \x01(\x03\x12%\n\tprop_type\x18\x02 \x01(\x0e\x32\x12.protobuf.PropType\"C\n\x07SendMsg\x12\x11\n\tplayer_id\x18\x01 \x01(\x03\x12\x14\n\x0cto_player_id\x18\x02 \x01(\x03\x12\x0f\n\x07message\x18\x03 \x01(\t\"-\n\tAttackMsg\x12\x11\n\tplayer_id\x18\x01 \x01(\x03\x12\r\n\x05\x61ngle\x18\x02 \x01(\x01\"\x1a\n\x05IDMsg\x12\x11\n\tplayer_id\x18\x01 \x01(\x03\x62\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, 'Message2Server_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _PLAYERMSG._serialized_start = 54 - _PLAYERMSG._serialized_end = 229 - _MOVEMSG._serialized_start = 231 - _MOVEMSG._serialized_end = 304 - _PICKMSG._serialized_start = 306 - _PICKMSG._serialized_end = 373 - _SENDMSG._serialized_start = 375 - _SENDMSG._serialized_end = 442 - _ATTACKMSG._serialized_start = 444 - _ATTACKMSG._serialized_end = 489 - _IDMSG._serialized_start = 491 - _IDMSG._serialized_end = 517 -# @@protoc_insertion_point(module_scope) diff --git a/PyAPI/proto/Message2Server_pb2.pyi b/PyAPI/proto/Message2Server_pb2.pyi deleted file mode 100755 index 27f2232..0000000 --- a/PyAPI/proto/Message2Server_pb2.pyi +++ /dev/null @@ -1,72 +0,0 @@ -import MessageType_pb2 as _MessageType_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - - -class AttackMsg(_message.Message): - __slots__ = ["angle", "player_id"] - ANGLE_FIELD_NUMBER: _ClassVar[int] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - angle: float - player_id: int - def __init__( - self, player_id: _Optional[int] = ..., angle: _Optional[float] = ...) -> None: ... - - -class IDMsg(_message.Message): - __slots__ = ["player_id"] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - player_id: int - def __init__(self, player_id: _Optional[int] = ...) -> None: ... - - -class MoveMsg(_message.Message): - __slots__ = ["angle", "player_id", "time_in_milliseconds"] - ANGLE_FIELD_NUMBER: _ClassVar[int] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - TIME_IN_MILLISECONDS_FIELD_NUMBER: _ClassVar[int] - angle: float - player_id: int - time_in_milliseconds: int - def __init__(self, player_id: _Optional[int] = ..., angle: _Optional[float] - = ..., time_in_milliseconds: _Optional[int] = ...) -> None: ... - - -class PickMsg(_message.Message): - __slots__ = ["player_id", "prop_type"] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - PROP_TYPE_FIELD_NUMBER: _ClassVar[int] - player_id: int - prop_type: _MessageType_pb2.PropType - def __init__(self, player_id: _Optional[int] = ..., - prop_type: _Optional[_Union[_MessageType_pb2.PropType, str]] = ...) -> None: ... - - -class PlayerMsg(_message.Message): - __slots__ = ["butcher_type", "human_type", "player_id", "player_type"] - BUTCHER_TYPE_FIELD_NUMBER: _ClassVar[int] - HUMAN_TYPE_FIELD_NUMBER: _ClassVar[int] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - PLAYER_TYPE_FIELD_NUMBER: _ClassVar[int] - butcher_type: _MessageType_pb2.ButcherType - human_type: _MessageType_pb2.HumanType - player_id: int - player_type: _MessageType_pb2.PlayerType - def __init__(self, player_id: _Optional[int] = ..., player_type: _Optional[_Union[_MessageType_pb2.PlayerType, str]] = ..., - human_type: _Optional[_Union[_MessageType_pb2.HumanType, str]] = ..., butcher_type: _Optional[_Union[_MessageType_pb2.ButcherType, str]] = ...) -> None: ... - - -class SendMsg(_message.Message): - __slots__ = ["message", "player_id", "to_player_id"] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - TO_PLAYER_ID_FIELD_NUMBER: _ClassVar[int] - message: str - player_id: int - to_player_id: int - - def __init__(self, player_id: _Optional[int] = ..., to_player_id: _Optional[int] - = ..., message: _Optional[str] = ...) -> None: ... diff --git a/PyAPI/proto/MessageType_pb2.py b/PyAPI/proto/MessageType_pb2.py deleted file mode 100755 index 1d14f6e..0000000 --- a/PyAPI/proto/MessageType_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: MessageType.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11MessageType.proto\x12\x08protobuf*g\n\tPlaceType\x12\x13\n\x0fNULL_PLACE_TYPE\x10\x00\x12\x08\n\x04LAND\x10\x01\x12\x08\n\x04WALL\x10\x02\x12\t\n\x05GRASS\x10\x03\x12\x0b\n\x07MACHINE\x10\x04\x12\x08\n\x04GATE\x10\x05\x12\x0f\n\x0bHIDDEN_GATE\x10\x06*8\n\tShapeType\x12\x13\n\x0fNULL_SHAPE_TYPE\x10\x00\x12\n\n\x06\x43IRCLE\x10\x01\x12\n\n\x06SQUARE\x10\x02*N\n\x08PropType\x12\x12\n\x0eNULL_PROP_TYPE\x10\x00\x12\n\n\x06PTYPE1\x10\x01\x12\n\n\x06PTYPE2\x10\x02\x12\n\n\x06PTYPE3\x10\x03\x12\n\n\x06PTYPE4\x10\x04*d\n\rHumanBuffType\x12\x13\n\x0fNULL_HBUFF_TYPE\x10\x00\x12\x0e\n\nHBUFFTYPE1\x10\x01\x12\x0e\n\nHBUFFTYPE2\x10\x02\x12\x0e\n\nHBUFFTYPE3\x10\x03\x12\x0e\n\nHBUFFTYPE4\x10\x04*V\n\nHumanState\x12\x0f\n\x0bNULL_STATUS\x10\x00\x12\x08\n\x04IDLE\x10\x01\x12\n\n\x06\x46IXING\x10\x02\x12\t\n\x05\x44YING\x10\x03\x12\x0c\n\x08ON_CHAIR\x10\x04\x12\x08\n\x04\x44\x45\x41\x44\x10\x05*f\n\x0f\x42utcherBuffType\x12\x13\n\x0fNULL_BBUFF_TYPE\x10\x00\x12\x0e\n\nBBUFFTYPE1\x10\x01\x12\x0e\n\nBBUFFTYPE2\x10\x02\x12\x0e\n\nBBUFFTYPE3\x10\x03\x12\x0e\n\nBBUFFTYPE4\x10\x04*H\n\nPlayerType\x12\x14\n\x10NULL_PLAYER_TYPE\x10\x00\x12\x10\n\x0cHUMAN_PLAYER\x10\x01\x12\x12\n\x0e\x42UTCHER_PLAYER\x10\x02*`\n\tHumanType\x12\x13\n\x0fNULL_HUMAN_TYPE\x10\x00\x12\x0e\n\nHUMANTYPE1\x10\x01\x12\x0e\n\nHUMANTYPE2\x10\x02\x12\x0e\n\nHUMANTYPE3\x10\x03\x12\x0e\n\nHUMANTYPE4\x10\x04*l\n\x0b\x42utcherType\x12\x15\n\x11NULL_BUTCHER_TYPE\x10\x00\x12\x10\n\x0c\x42UTCHERTYPE1\x10\x01\x12\x10\n\x0c\x42UTCHERTYPE2\x10\x02\x12\x10\n\x0c\x42UTCHERTYPE3\x10\x03\x12\x10\n\x0c\x42UTCHERTYPE4\x10\x04*P\n\tGameState\x12\x13\n\x0fNULL_GAME_STATE\x10\x00\x12\x0e\n\nGAME_START\x10\x01\x12\x10\n\x0cGAME_RUNNING\x10\x02\x12\x0c\n\x08GAME_END\x10\x03\x62\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, 'MessageType_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _PLACETYPE._serialized_start = 31 - _PLACETYPE._serialized_end = 134 - _SHAPETYPE._serialized_start = 136 - _SHAPETYPE._serialized_end = 192 - _PROPTYPE._serialized_start = 194 - _PROPTYPE._serialized_end = 272 - _HUMANBUFFTYPE._serialized_start = 274 - _HUMANBUFFTYPE._serialized_end = 374 - _HUMANSTATE._serialized_start = 376 - _HUMANSTATE._serialized_end = 462 - _BUTCHERBUFFTYPE._serialized_start = 464 - _BUTCHERBUFFTYPE._serialized_end = 566 - _PLAYERTYPE._serialized_start = 568 - _PLAYERTYPE._serialized_end = 640 - _HUMANTYPE._serialized_start = 642 - _HUMANTYPE._serialized_end = 738 - _BUTCHERTYPE._serialized_start = 740 - _BUTCHERTYPE._serialized_end = 848 - _GAMESTATE._serialized_start = 850 - _GAMESTATE._serialized_end = 930 -# @@protoc_insertion_point(module_scope) diff --git a/PyAPI/proto/MessageType_pb2.pyi b/PyAPI/proto/MessageType_pb2.pyi deleted file mode 100755 index 22c5594..0000000 --- a/PyAPI/proto/MessageType_pb2.pyi +++ /dev/null @@ -1,93 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from typing import ClassVar as _ClassVar - -BBUFFTYPE1: ButcherBuffType -BBUFFTYPE2: ButcherBuffType -BBUFFTYPE3: ButcherBuffType -BBUFFTYPE4: ButcherBuffType -BUTCHERTYPE1: ButcherType -BUTCHERTYPE2: ButcherType -BUTCHERTYPE3: ButcherType -BUTCHERTYPE4: ButcherType -BUTCHER_PLAYER: PlayerType -CIRCLE: ShapeType -DEAD: HumanState -DESCRIPTOR: _descriptor.FileDescriptor -DYING: HumanState -FIXING: HumanState -GAME_END: GameState -GAME_RUNNING: GameState -GAME_START: GameState -GATE: PlaceType -GRASS: PlaceType -HBUFFTYPE1: HumanBuffType -HBUFFTYPE2: HumanBuffType -HBUFFTYPE3: HumanBuffType -HBUFFTYPE4: HumanBuffType -HIDDEN_GATE: PlaceType -HUMANTYPE1: HumanType -HUMANTYPE2: HumanType -HUMANTYPE3: HumanType -HUMANTYPE4: HumanType -HUMAN_PLAYER: PlayerType -IDLE: HumanState -LAND: PlaceType -MACHINE: PlaceType -NULL_BBUFF_TYPE: ButcherBuffType -NULL_BUTCHER_TYPE: ButcherType -NULL_GAME_STATE: GameState -NULL_HBUFF_TYPE: HumanBuffType -NULL_HUMAN_TYPE: HumanType -NULL_PLACE_TYPE: PlaceType -NULL_PLAYER_TYPE: PlayerType -NULL_PROP_TYPE: PropType -NULL_SHAPE_TYPE: ShapeType -NULL_STATUS: HumanState -ON_CHAIR: HumanState -PTYPE1: PropType -PTYPE2: PropType -PTYPE3: PropType -PTYPE4: PropType -SQUARE: ShapeType -WALL: PlaceType - - -class PlaceType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class ShapeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class PropType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class HumanBuffType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class HumanState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class ButcherBuffType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class PlayerType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class HumanType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class ButcherType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - - -class GameState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] diff --git a/PyAPI/proto/Services_pb2.py b/PyAPI/proto/Services_pb2.py deleted file mode 100755 index ea02799..0000000 --- a/PyAPI/proto/Services_pb2.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: Services.proto -"""Generated protocol buffer code.""" -import Message2Server_pb2 as Message2Server__pb2 -import Message2Clients_pb2 as Message2Clients__pb2 -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eServices.proto\x12\x08protobuf\x1a\x15Message2Clients.proto\x1a\x14Message2Server.proto2\xfa\x06\n\x10\x41vailableService\x12\x33\n\rTryConnection\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12=\n\tAddPlayer\x12\x13.protobuf.PlayerMsg\x1a\x19.protobuf.MessageToClient0\x01\x12,\n\x04Move\x12\x11.protobuf.MoveMsg\x1a\x11.protobuf.MoveRes\x12\x30\n\x08PickProp\x12\x11.protobuf.PickMsg\x1a\x11.protobuf.BoolRes\x12-\n\x07UseProp\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12.\n\x08UseSkill\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12\x33\n\x0bSendMessage\x12\x11.protobuf.SendMsg\x1a\x11.protobuf.BoolRes\x12\x31\n\nGetMessage\x12\x0f.protobuf.IDMsg\x1a\x10.protobuf.MsgRes0\x01\x12\x35\n\x0fStartFixMachine\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12\x33\n\rEndFixMachine\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12\x34\n\x0eStartSaveHuman\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12\x32\n\x0c\x45ndSaveHuman\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12\x30\n\x06\x41ttack\x12\x13.protobuf.AttackMsg\x1a\x11.protobuf.BoolRes\x12\x30\n\nCarryHuman\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12\x32\n\x0cReleaseHuman\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12/\n\tHangHuman\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolRes\x12,\n\x06\x45scape\x12\x0f.protobuf.IDMsg\x1a\x11.protobuf.BoolResb\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Services_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _AVAILABLESERVICE._serialized_start = 74 - _AVAILABLESERVICE._serialized_end = 964 -# @@protoc_insertion_point(module_scope) diff --git a/PyAPI/proto/Services_pb2.pyi b/PyAPI/proto/Services_pb2.pyi deleted file mode 100755 index 733c165..0000000 --- a/PyAPI/proto/Services_pb2.pyi +++ /dev/null @@ -1,6 +0,0 @@ -import Message2Clients_pb2 as _Message2Clients_pb2 -import Message2Server_pb2 as _Message2Server_pb2 -from google.protobuf import descriptor as _descriptor -from typing import ClassVar as _ClassVar - -DESCRIPTOR: _descriptor.FileDescriptor diff --git a/PyAPI/proto/Services_pb2_grpc.py b/PyAPI/proto/Services_pb2_grpc.py deleted file mode 100755 index d079c0a..0000000 --- a/PyAPI/proto/Services_pb2_grpc.py +++ /dev/null @@ -1,603 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -import Message2Clients_pb2 as Message2Clients__pb2 -import Message2Server_pb2 as Message2Server__pb2 - - -class AvailableServiceStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.TryConnection = channel.unary_unary( - '/protobuf.AvailableService/TryConnection', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.AddPlayer = channel.unary_stream( - '/protobuf.AvailableService/AddPlayer', - request_serializer=Message2Server__pb2.PlayerMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.MessageToClient.FromString, - ) - self.Move = channel.unary_unary( - '/protobuf.AvailableService/Move', - request_serializer=Message2Server__pb2.MoveMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.MoveRes.FromString, - ) - self.PickProp = channel.unary_unary( - '/protobuf.AvailableService/PickProp', - request_serializer=Message2Server__pb2.PickMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.UseProp = channel.unary_unary( - '/protobuf.AvailableService/UseProp', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.UseSkill = channel.unary_unary( - '/protobuf.AvailableService/UseSkill', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.SendMessage = channel.unary_unary( - '/protobuf.AvailableService/SendMessage', - request_serializer=Message2Server__pb2.SendMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.GetMessage = channel.unary_stream( - '/protobuf.AvailableService/GetMessage', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.MsgRes.FromString, - ) - self.StartFixMachine = channel.unary_unary( - '/protobuf.AvailableService/StartFixMachine', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.EndFixMachine = channel.unary_unary( - '/protobuf.AvailableService/EndFixMachine', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.StartSaveHuman = channel.unary_unary( - '/protobuf.AvailableService/StartSaveHuman', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.EndSaveHuman = channel.unary_unary( - '/protobuf.AvailableService/EndSaveHuman', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.Attack = channel.unary_unary( - '/protobuf.AvailableService/Attack', - request_serializer=Message2Server__pb2.AttackMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.CarryHuman = channel.unary_unary( - '/protobuf.AvailableService/CarryHuman', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.ReleaseHuman = channel.unary_unary( - '/protobuf.AvailableService/ReleaseHuman', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.HangHuman = channel.unary_unary( - '/protobuf.AvailableService/HangHuman', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - self.Escape = channel.unary_unary( - '/protobuf.AvailableService/Escape', - request_serializer=Message2Server__pb2.IDMsg.SerializeToString, - response_deserializer=Message2Clients__pb2.BoolRes.FromString, - ) - - -class AvailableServiceServicer(object): - """Missing associated documentation comment in .proto file.""" - - def TryConnection(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddPlayer(self, request, context): - """游戏开局调用一次的服务 - 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Move(self, request, context): - """游戏过程中玩家执行操作的服务 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PickProp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UseProp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UseSkill(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StartFixMachine(self, request, context): - """开始修理机器 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EndFixMachine(self, request, context): - """主动停止修复 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StartSaveHuman(self, request, context): - """开始救人 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EndSaveHuman(self, request, context): - """主动停止救人 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Attack(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CarryHuman(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReleaseHuman(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def HangHuman(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Escape(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AvailableServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'TryConnection': grpc.unary_unary_rpc_method_handler( - servicer.TryConnection, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'AddPlayer': grpc.unary_stream_rpc_method_handler( - servicer.AddPlayer, - request_deserializer=Message2Server__pb2.PlayerMsg.FromString, - response_serializer=Message2Clients__pb2.MessageToClient.SerializeToString, - ), - 'Move': grpc.unary_unary_rpc_method_handler( - servicer.Move, - request_deserializer=Message2Server__pb2.MoveMsg.FromString, - response_serializer=Message2Clients__pb2.MoveRes.SerializeToString, - ), - 'PickProp': grpc.unary_unary_rpc_method_handler( - servicer.PickProp, - request_deserializer=Message2Server__pb2.PickMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'UseProp': grpc.unary_unary_rpc_method_handler( - servicer.UseProp, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'UseSkill': grpc.unary_unary_rpc_method_handler( - servicer.UseSkill, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'SendMessage': grpc.unary_unary_rpc_method_handler( - servicer.SendMessage, - request_deserializer=Message2Server__pb2.SendMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'GetMessage': grpc.unary_stream_rpc_method_handler( - servicer.GetMessage, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.MsgRes.SerializeToString, - ), - 'StartFixMachine': grpc.unary_unary_rpc_method_handler( - servicer.StartFixMachine, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'EndFixMachine': grpc.unary_unary_rpc_method_handler( - servicer.EndFixMachine, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'StartSaveHuman': grpc.unary_unary_rpc_method_handler( - servicer.StartSaveHuman, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'EndSaveHuman': grpc.unary_unary_rpc_method_handler( - servicer.EndSaveHuman, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'Attack': grpc.unary_unary_rpc_method_handler( - servicer.Attack, - request_deserializer=Message2Server__pb2.AttackMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'CarryHuman': grpc.unary_unary_rpc_method_handler( - servicer.CarryHuman, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'ReleaseHuman': grpc.unary_unary_rpc_method_handler( - servicer.ReleaseHuman, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'HangHuman': grpc.unary_unary_rpc_method_handler( - servicer.HangHuman, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - 'Escape': grpc.unary_unary_rpc_method_handler( - servicer.Escape, - request_deserializer=Message2Server__pb2.IDMsg.FromString, - response_serializer=Message2Clients__pb2.BoolRes.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'protobuf.AvailableService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - # This class is part of an EXPERIMENTAL API. - - -class AvailableService(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def TryConnection(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/TryConnection', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddPlayer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/protobuf.AvailableService/AddPlayer', - Message2Server__pb2.PlayerMsg.SerializeToString, - Message2Clients__pb2.MessageToClient.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Move(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/Move', - Message2Server__pb2.MoveMsg.SerializeToString, - Message2Clients__pb2.MoveRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PickProp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/PickProp', - Message2Server__pb2.PickMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UseProp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/UseProp', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UseSkill(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/UseSkill', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/SendMessage', - Message2Server__pb2.SendMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/protobuf.AvailableService/GetMessage', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.MsgRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StartFixMachine(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/StartFixMachine', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EndFixMachine(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/EndFixMachine', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StartSaveHuman(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/StartSaveHuman', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EndSaveHuman(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/EndSaveHuman', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Attack(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/Attack', - Message2Server__pb2.AttackMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CarryHuman(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/CarryHuman', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReleaseHuman(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/ReleaseHuman', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def HangHuman(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/HangHuman', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Escape(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/protobuf.AvailableService/Escape', - Message2Server__pb2.IDMsg.SerializeToString, - Message2Clients__pb2.BoolRes.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata)