Пример #1
0
 async def step(self):
     """ EXPERIMENTAL: Change self._client.game_step during the step function to increase or decrease steps per second """
     result = await self._execute(step=sc_pb.RequestStep(
         count=self.game_step))
     return result
Пример #2
0
 def step(self, count=1):
     """Step the engine forward by one (or more) step."""
     return self._client.send(step=sc_pb.RequestStep(count=count))
Пример #3
0
print("Make")
#send Request
print(test_client.comm.send(create_game = create_game))
#print (test_client.comm.read())
"""Join Game"""
#Make Requst(JoinGame)

interface_options = sc_pb.InterfaceOptions(raw = True, score = False)
join_game = sc_pb.RequestJoinGame(race = 3, options = interface_options)

#send Request
test_client.comm.send(join_game=join_game)
#print (test_client.comm.read())

#Game Start
print(test_client.comm.send(step = sc_pb.RequestStep(count = 1)))
#print (test_client.comm.read())

#Get Data
"""

data = sc_pb.RequestData()
data.ability_id=True
data.unit_type_id=True
test_client.comm.send(data=data)
#print(test_client.comm.read())

"""

"""Action"""
"""
Пример #4
0
 async def step(self, step_size: int = None):
     """ EXPERIMENTAL: Change self._client.game_step during the step function to increase or decrease steps per second """
     step_size = step_size or self.game_step
     return await self._execute(step=sc_pb.RequestStep(count=step_size))
Пример #5
0
 async def step(self):
     result = await self._execute(step=sc_pb.RequestStep(count=8))
     return result