File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "profiles" : {
3+ "ClientTest" : {
4+ "commandName" : " Project"
5+ }
6+ }
7+ }
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ public static Task Main(string[] args)
3737
3838 Thread . Sleep ( 3000 ) ;
3939
40+ while ( call . ResponseStream . MoveNext ( ) . Result )
41+ {
42+ var currentGameInfo = call . ResponseStream . Current ;
43+ if ( currentGameInfo . GameState == GameState . GameStart ) break ;
44+ }
45+
4046 CreateCharacterMsg createMsg = new ( )
4147 {
4248 CharacterType = CharacterType . Robot , // 无人机
@@ -51,21 +57,25 @@ public static Task Main(string[] args)
5157 return Task . CompletedTask ;
5258 }
5359
60+ //Thread.Sleep(3000);
61+
5462 MoveMsg moveMsg = new ( )
5563 {
5664 PlayerId = 1 ,
5765 TeamId = teamId ,
5866 TimeInMilliseconds = 100 ,
5967 Angle = 0
6068 } ;
69+ /*
6170 while (call.ResponseStream.MoveNext().Result)
6271 {
6372 var currentGameInfo = call.ResponseStream.Current;
6473 if (currentGameInfo.GameState == GameState.GameStart) break;
6574 }
75+ */
6676 while ( true )
6777 {
68- Thread . Sleep ( 500 ) ;
78+ Thread . Sleep ( 1000 ) ;
6979
7080 MoveRes boolRes = client . Move ( moveMsg ) ;
7181 //if (boolRes.ActSuccess == false) break;
Original file line number Diff line number Diff line change @@ -384,10 +384,10 @@ public override int[] GetScore()
384384 return score ;
385385 }
386386
387- private uint GetBirthPointIdx ( long playerID ) // 获取出生点位置
388- {
389- return ( uint ) playerID + 1 ; // ID从0-8,出生点从1-9
390- }
387+ // private uint GetBirthPointIdx(long playerID) // 获取出生点位置
388+ // {
389+ // return (uint)playerID + 1; // ID从0-8,出生点从1-9
390+ // }
391391
392392 private bool ValidPlayerID ( long playerID )
393393 {
You can’t perform that action at this time.
0 commit comments