Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Panxuc/THUAI7 into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
panxuc committed Apr 27, 2024
2 parents f964928 + a87c129 commit ea7a293
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CAPI/python/PyAPI/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ def Construct(self, constructionType: THUAI7.ConstructionType) -> bool:
self.__logger.debug("Called Construct")
return self.__comm.Construct(constructionType, self.__playerID, self.__teamID)

def InstallModule(self, moduleType: THUAI7.ModuleType) -> bool:
def InstallModule(self, playerID: int, moduleType: THUAI7.ModuleType) -> bool:
self.__logger.debug("Called InstallModule")
return self.__comm.InstallModule(moduleType, self.__playerID, self.__teamID)
return self.__comm.InstallModule(moduleType, playerID, self.__teamID)

def Recycle(self) -> bool:
def Recycle(self, playerID: int) -> bool:
self.__logger.debug("Called Recycle")
return self.__comm.Recycle(self.__playerID, self.__teamID)
return self.__comm.Recycle(playerID, self.__teamID)

def BuildShip(self, shipType: THUAI7.ShipType, birthIndex: int) -> bool:
self.__logger.debug("Called BuildShip")
Expand Down

0 comments on commit ea7a293

Please sign in to comment.