Skip to main content

No project description provided

Project description

rwmapeditor-exgcdwu

一个铁锈战争(Rusted Warfare)地图编辑python库

[released version][pypi] [license][license]

目标

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

This version

1.1

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.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rwmapeditor_exgcdwu-1.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file rwmapeditor_exgcdwu-1.1.tar.gz.

File metadata

  • Download URL: rwmapeditor_exgcdwu-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

Hashes for rwmapeditor_exgcdwu-1.1.tar.gz
Algorithm Hash digest
SHA256 3291f00f5ec926b546dd6bb49b5f460a142353e25988fed6ec4102260f35ffd6
MD5 5215987b988dc0776ead2be814931650
BLAKE2b-256 65c63c53cb24dd07b1d7beec08ceca5ab25a506eaa42749c80adabebaaa7575f

See more details on using hashes here.

File details

Details for the file rwmapeditor_exgcdwu-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rwmapeditor_exgcdwu-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c78fbc6a7b35017739ff20d7295f8b018ddaed7a87a8cf9973074bbb18f806
MD5 6fd01ad2ca564f84abb3d2f27bfaddd6
BLAKE2b-256 8051106703c634199c48598631b911f9aa2de2b7a8d9607fed6308460f4e75e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page