No project description provided
Project description
rwmapeditor-exgcdwu
一个铁锈战争 (Rusted Warfare) 地图编辑 python 库
目标
python实现铁锈地图文件地块编辑和宾语编辑。
暂时不打算接触地块集。
重点减轻城市争夺地图的宾语编辑工作量
基本框架已完成。
安装
pip install rwmapeditor-exgcdwu
简易使用例子
# coding: utf-8
map_dir = 'D:/Game/steam/steamapps/common/Rusted Warfare/mods/maps/'
map_name = 'example_mission.tmx'
map_name_out = 'example_mission(1).tmx'
mygraph:rw.RWmap = rw.RWmap.init_graphfile(map_dir + map_name, map_dir)
print(mygraph.output_str())
mygraph.addObject("Triggers", {"id": "100","type": "unitAdd", "x": "1000", "y":"1000", "width": "20", "height": "20"}, {"resetActivationAfter":"5s", "spawnUnits": "heavyTank*10", "team" :"0", "warmup":"20s"})
mygraph.addTile("Ground", rw.Coordinate(1, 0), "Long Grass", rw.Coordinate(0, 0))
mygraph.addTile("Ground", rw.Coordinate(2, 0), "Long Grass", rw.Coordinate(0, 0))
mygraph.addTile("Ground", rw.Coordinate(0, 1), "Long Grass", rw.Coordinate(0, 0))
mygraph.addTile_square("Ground", rw.Rectangle(rw.Coordinate(5, 5), rw.Coordinate(10, 10)), "Deep Water", rw.Coordinate(0, 0))
mygraph.write_file(map_dir + map_name_out)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rwmapeditor_exgcdwu-1.1.1.tar.gz
(20.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rwmapeditor_exgcdwu-1.1.1.tar.gz.
File metadata
- Download URL: rwmapeditor_exgcdwu-1.1.1.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f1a17ea7ae91800ef450c23e75638c0eca46fd62eff3d92c8c230fef37fd415
|
|
| MD5 |
d98fdeadda2b036b72bf53c4d4713a3b
|
|
| BLAKE2b-256 |
15876116465746bf26f170352a9946cfac6301e4b4d0e19a879683ae33f20163
|
File details
Details for the file rwmapeditor_exgcdwu-1.1.1-py3-none-any.whl.
File metadata
- Download URL: rwmapeditor_exgcdwu-1.1.1-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fa2c1dc57579e5b5bef9722daeb055844108b4214d8e1d5fef2b8625a96e54d
|
|
| MD5 |
601a080050005286bace37c1f520e4f6
|
|
| BLAKE2b-256 |
911511d8597c7b3248cd31389ae25c42b85718195163f0a728c29ff0a8c89049
|