diff --git a/.github/workflows/upload_COS.yml b/.github/workflows/upload_COS.yml index e235d1e..a110405 100644 --- a/.github/workflows/upload_COS.yml +++ b/.github/workflows/upload_COS.yml @@ -116,24 +116,26 @@ jobs: image_import: ./images build_html: false - - name: Upload COS - uses: zkqiang/tencent-cos-action@v0.1.0 + - uses: TencentCloud/cos-action@v1 with: - args: upload -r ./THUAI6/ /THUAI6/ secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} - bucket: ${{ secrets.COS_BUCKET }} - region: ${{ secrets.COS_REGION }} + cos_bucket: ${{ secrets.COS_BUCKET }} + cos_region: ${{ secrets.COS_REGION }} + local_path: ./THUAI6/ + remote_path: THUAI6/ + clean: true - name: Hash Files run: | python ./dependency/py/HashFiles.py -t ./THUAI6 - - name: Upload COS - uses: zkqiang/tencent-cos-action@v0.1.0 + - uses: TencentCloud/cos-action@v1 with: - args: upload -r ./THUAI6/hash.json / secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} - bucket: ${{ secrets.COS_BUCKET }} - region: ${{ secrets.COS_REGION }} \ No newline at end of file + cos_bucket: ${{ secrets.COS_BUCKET }} + cos_region: ${{ secrets.COS_REGION }} + local_path: ./THUAI6/ + remote_path: THUAI6/ + clean: true \ No newline at end of file diff --git a/docs/CAPI接口(cpp).md b/docs/CAPI接口(cpp).md index 3063dc5..d855b7c 100644 --- a/docs/CAPI接口(cpp).md +++ b/docs/CAPI接口(cpp).md @@ -55,12 +55,13 @@ 下面的 CellX 和 CellY 指的是地图格数,而非绝对坐标。 - `THUAI6::PlaceType GetPlaceType(int32_t cellX, int32_t cellY)` :返回某一位置场地种类信息。场地种类详见 structure.h 。 - - `bool IsDoorOpen(int32_t cellX, int32_t cellY) const`:查询特定位置门是否开启 - - `int32_t GetChestProgress(int32_t cellX, int32_t cellY) const`:查询特定位置箱子开启进度 - - `int32_t GetGateProgress(int32_t cellX, int32_t cellY) const`:查询特定位置校门开启进度 - - `int32_t GetClassroomProgress(int32_t cellX, int32_t cellY) const`:查询特定位置教室作业完成进度 - - `THUAI6::HiddenGateState GetHiddenGateState(int32_t cellX, int32_t cellY) const`::查询特定位置隐藏校门状态 - - `int32_t GetDoorProgress(int32_t cellX, int32_t cellY) const`:查询特定位置门开启状态 + - `bool IsDoorOpen(int32_t cellX, int32_t cellY) const`:查询特定位置门是否开启,没有门也返回false + - 以下指令特定位置没有对应物品返回-1 + - `int32_t GetChestProgress(int32_t cellX, int32_t cellY) const`:查询特定位置箱子开启进度 + - `int32_t GetGateProgress(int32_t cellX, int32_t cellY) const`:查询特定位置校门开启进度 + - `int32_t GetClassroomProgress(int32_t cellX, int32_t cellY) const`:查询特定位置教室作业完成进度 + - `int32_t GetDoorProgress(int32_t cellX, int32_t cellY) const`:查询特定位置门开启状态 + - `THUAI6::HiddenGateState GetHiddenGateState(int32_t cellX, int32_t cellY) const`::查询特定位置隐藏校门状态,没有隐藏校门返回THUAI6::HiddenGateState::Null #### 其他 - `std::shared_ptr GetGameInfo() const`:查询当前游戏状态 diff --git a/docs/CAPI接口(python).md b/docs/CAPI接口(python).md index b6bbd90..bb7e1e9 100644 --- a/docs/CAPI接口(python).md +++ b/docs/CAPI接口(python).md @@ -76,9 +76,9 @@ #### 其他 - - `def GetGameInfo(self) -> THUAI6.GameInfo`:查询当前游戏状态\ - - `def GetPlayerGUIDs(self) -> List[int]`:获取所有玩家的GUID\ - - `def GetFrameCount(self) -> int`:获取目前所进行的帧数\ + - `def GetGameInfo(self) -> THUAI6.GameInfo`:查询当前游戏状态 + - `def GetPlayerGUIDs(self) -> List[int]`:获取所有玩家的GUID + - `def GetFrameCount(self) -> int`:获取目前所进行的帧数 - `def GetSelfInfo(self) -> Union[THUAI6.Student, THUAI6.Tricker]`:获取自己的信息 - `def GetFullMap(self) -> List[List[THUAI6.PlaceType]]`:返回整张地图的地形信息。可以写成类似`self.GetFullMap()[x][y]`,其中x为地图自上到下第几行,y为自左向右第几列,注意从0开始