Browse Source

fix: 💩 fix CI

tags/0.1.0
shangfengh 3 years ago
parent
commit
e66e9c6b58
3 changed files with 15 additions and 9 deletions
  1. +5
    -0
      .github/workflows/upload_COS.yml
  2. +7
    -6
      docs/CAPI接口(cpp).md
  3. +3
    -3
      docs/CAPI接口(python).md

+ 5
- 0
.github/workflows/upload_COS.yml View File

@@ -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:


+ 7
- 6
docs/CAPI接口(cpp).md View File

@@ -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<const THUAI6::GameInfo> GetGameInfo() const`:查询当前游戏状态


+ 3
- 3
docs/CAPI接口(python).md View File

@@ -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开始



Loading…
Cancel
Save