Browse Source

ci: 💩 fix CI finally

tags/0.1.0
shangfengh 2 years ago
parent
commit
7d545adcb6
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      .github/workflows/upload_COS.yml
  2. +1
    -1
      docs/CAPI接口(cpp).md

+ 4
- 4
.github/workflows/upload_COS.yml View File

@@ -7,7 +7,7 @@ name: "upload_COS"

on:
push:
branches: [ main, dev , new]
branches: [ main, dev ]

jobs:
client_build:
@@ -118,6 +118,9 @@ jobs:
image_import: ./images
build_html: false

- name: Unix to dos
run: bash ./dependency/shell/Unix2dos.sh ./THUAI6

- name: Upload COS
uses: zkqiang/tencent-cos-action@v0.1.0
with:
@@ -127,9 +130,6 @@ jobs:
bucket: ${{ secrets.COS_BUCKET }}
region: ${{ secrets.COS_REGION }}

- name: Unix to dos
run: bash ./dependency/shell/Unix2dos.sh ./THUAI6

- name: Hash Files
run: |
python ./dependency/py/HashFiles.py -t ./THUAI6


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

@@ -67,7 +67,7 @@
- `std::vector<int64_t> GetPlayerGUIDs() const`:获取所有玩家的GUID
- `int GetFrameCount() const`:获取目前所进行的帧数
- `std::shared_ptr<const THUAI6::Tricker> GetSelfInfo() const`或`std::shared_ptr<const THUAI6::Student> GetSelfInfo() const`:获取自己的信息
- `std::vector<std::vector<THUAI6::PlaceType>> GetFullMap() const`:返回整张地图的地形信息。
- `std::vector<std::vector<THUAI6::PlaceType>> GetFullMap() const`:返回整张地图的地形信息。可以写成类似`api.GetFullMap()[x][y]`,其中x为地图自上到下第几行,y为自左向右第几列,注意从0开始

### 辅助函数
`static inline int CellToGrid(int cell) noexcept`:将地图格数 cell 转换为绝对坐标grid。


Loading…
Cancel
Save