Skip to content

Commit 41fd620

Browse files
authored
Merge pull request #8 from SoroushMazloum/develop
.thrift version change and catch_time
2 parents a5cee77 + 96f7721 commit 41fd620

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

idl/soccer_service.thrift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// version 1
1+
// version 1.1
22

33
namespace cpp soccer
44
namespace py soccer
@@ -177,7 +177,8 @@ struct Self {
177177
36: double kick_rate,
178178
37: double recovery,
179179
38: double stamina_capacity,
180-
39: CardType card
180+
39: CardType card,
181+
40: i32 catch_time
181182
}
182183

183184
enum InterceptActionType {

soccer/Game-remote

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
#
3-
# Autogenerated by Thrift Compiler (0.16.0)
3+
# Autogenerated by Thrift Compiler (0.20.0)
44
#
55
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
66
#

soccer/Game.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

soccer/constants.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

soccer/ttypes.py

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

soccer/ttypes.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Player(object):
137137
type_id: int
138138

139139
class Self(object):
140-
def __init__(self, position: RpcVector2D = None, seen_position: RpcVector2D = None, heard_position: RpcVector2D = None, velocity: RpcVector2D = None, seen_velocity: RpcVector2D = None, pos_count: int = None, seen_pos_count: int = None, heard_pos_count: int = None, vel_count: int = None, seen_vel_count: int = None, ghost_count: int = None, id: int = None, side: Side = None, uniform_number: int = None, uniform_number_count: int = None, is_goalie: bool = None, body_direction: float = None, body_direction_count: int = None, face_direction: float = None, face_direction_count: int = None, point_to_direction: float = None, point_to_direction_count: int = None, is_kicking: bool = None, dist_from_ball: float = None, angle_from_ball: float = None, ball_reach_steps: int = None, is_tackling: bool = None, relative_neck_direction: float = None, stamina: float = None, is_kickable: bool = None, catch_probability: float = None, tackle_probability: float = None, foul_probability: float = None, view_width: ViewWidth = None, type_id: int = None, kick_rate: float = None, recovery: float = None, stamina_capacity: float = None, card: CardType = None):
140+
def __init__(self, position: RpcVector2D = None, seen_position: RpcVector2D = None, heard_position: RpcVector2D = None, velocity: RpcVector2D = None, seen_velocity: RpcVector2D = None, pos_count: int = None, seen_pos_count: int = None, heard_pos_count: int = None, vel_count: int = None, seen_vel_count: int = None, ghost_count: int = None, id: int = None, side: Side = None, uniform_number: int = None, uniform_number_count: int = None, is_goalie: bool = None, body_direction: float = None, body_direction_count: int = None, face_direction: float = None, face_direction_count: int = None, point_to_direction: float = None, point_to_direction_count: int = None, is_kicking: bool = None, dist_from_ball: float = None, angle_from_ball: float = None, ball_reach_steps: int = None, is_tackling: bool = None, relative_neck_direction: float = None, stamina: float = None, is_kickable: bool = None, catch_probability: float = None, tackle_probability: float = None, foul_probability: float = None, view_width: ViewWidth = None, type_id: int = None, kick_rate: float = None, recovery: float = None, stamina_capacity: float = None, card: CardType = None, catch_time: int = None):
141141
pass
142142
position: RpcVector2D
143143
seen_position: RpcVector2D
@@ -178,6 +178,7 @@ class Self(object):
178178
recovery: float
179179
stamina_capacity: float
180180
card: CardType
181+
catch_time: int
181182

182183
class InterceptActionType(Enum):
183184
UNKNOWN_Intercept_Action_Type = auto()

0 commit comments

Comments
 (0)