forked from eesast/THUAI7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eesast#223 from asdawej/dev-playback
playback flush every 500 msg
- Loading branch information
Showing
9 changed files
with
95 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Team 0", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "./PyAPI/main.py", | ||
"console": "integratedTerminal", | ||
"args": "-I localhost -P 8888 -t 0 -d -o" | ||
}, | ||
{ | ||
"name": "Team 1", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "./PyAPI/main.py", | ||
"console": "integratedTerminal", | ||
"args": "-I localhost -P 8888 -t 1 -d -o" | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Compound", | ||
"configurations": ["Team 0", "Team 1"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"python.analysis.autoImportCompletions": true, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/Thumbs.db": true, | ||
"**/__pycache__": true, | ||
"**/build": true | ||
}, | ||
"python.analysis.typeCheckingMode": "off" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import sys | ||
import grpc | ||
|
||
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/proto") | ||
|
||
import proto.Message2Server_pb2 as m2s # NOQA: E402 | ||
import proto.Message2Clients_pb2 as m2c # NOQA: E402 | ||
import proto.MessageType_pb2 as mt # NOQA: E402 | ||
import proto.Services_pb2_grpc as ser # NOQA: E402 | ||
|
||
stub = ser.AvailableServiceStub(grpc.insecure_channel('localhost:8888')) | ||
for msg in stub.AddPlayer(m2s.PlayerMsg(player_id=2025)): | ||
print(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters