From e66e9c6b58f02617cb352fe66285d533ce455e07 Mon Sep 17 00:00:00 2001 From: shangfengh <3495281661@qq.com> Date: Fri, 21 Apr 2023 12:30:41 +0800 Subject: [PATCH] fix: :poop: fix CI --- .github/workflows/upload_COS.yml | 5 +++++ docs/CAPI接口(cpp).md | 13 +++++++------ docs/CAPI接口(python).md | 6 +++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/upload_COS.yml b/.github/workflows/upload_COS.yml index e235d1e..1c9273a 100644 --- a/.github/workflows/upload_COS.yml +++ b/.github/workflows/upload_COS.yml @@ -89,6 +89,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: "10.x" + - name: Setup dotnet Core uses: actions/setup-dotnet@v3 with: 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开始