| @@ -7,7 +7,7 @@ name: "upload_COS" | |||||
| on: | on: | ||||
| push: | push: | ||||
| branches: [ main, dev , new] | |||||
| branches: [ main, dev ] | |||||
| jobs: | jobs: | ||||
| client_build: | client_build: | ||||
| @@ -118,6 +118,9 @@ jobs: | |||||
| image_import: ./images | image_import: ./images | ||||
| build_html: false | build_html: false | ||||
| - name: Unix to dos | |||||
| run: bash ./dependency/shell/Unix2dos.sh ./THUAI6 | |||||
| - name: Upload COS | - name: Upload COS | ||||
| uses: zkqiang/tencent-cos-action@v0.1.0 | uses: zkqiang/tencent-cos-action@v0.1.0 | ||||
| with: | with: | ||||
| @@ -127,9 +130,6 @@ jobs: | |||||
| bucket: ${{ secrets.COS_BUCKET }} | bucket: ${{ secrets.COS_BUCKET }} | ||||
| region: ${{ secrets.COS_REGION }} | region: ${{ secrets.COS_REGION }} | ||||
| - name: Unix to dos | |||||
| run: bash ./dependency/shell/Unix2dos.sh ./THUAI6 | |||||
| - name: Hash Files | - name: Hash Files | ||||
| run: | | run: | | ||||
| python ./dependency/py/HashFiles.py -t ./THUAI6 | python ./dependency/py/HashFiles.py -t ./THUAI6 | ||||
| @@ -67,7 +67,7 @@ | |||||
| - `std::vector<int64_t> GetPlayerGUIDs() const`:获取所有玩家的GUID | - `std::vector<int64_t> GetPlayerGUIDs() const`:获取所有玩家的GUID | ||||
| - `int GetFrameCount() const`:获取目前所进行的帧数 | - `int GetFrameCount() const`:获取目前所进行的帧数 | ||||
| - `std::shared_ptr<const THUAI6::Tricker> GetSelfInfo() const`或`std::shared_ptr<const THUAI6::Student> GetSelfInfo() 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。 | `static inline int CellToGrid(int cell) noexcept`:将地图格数 cell 转换为绝对坐标grid。 | ||||