godot_parser:用于解析Godot场景文件的Python库

时间:2021-05-20 17:58:21
【文件属性】:
文件名称:godot_parser:用于解析Godot场景文件的Python库
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-20 17:58:21
python godot tres tscn Python 戈多解析器 这是一个Python库,用于解析Godot场景(.tscn)和资源(.tres)文件。 目的是使在Godot中自动化编辑场景文件或资源的某些方面更加容易。 高级API godot_parser大致具有两个级别的API。 低级API没有Godot特定的逻辑,只是文件格式的哑包装。 高级API在顶部具有一些应用程序逻辑,以反映Godot功能并使其更易于执行某些任务。 让我们来看一个为播放器创建新场景文件的示例: from godot_parser import GDScene , Node scene = GDScene () res = scene . add_ext_resource ( "res://PlayerSprite.png" , "PackedScene" ) with scene . use_tree () as tree :
【文件预览】:
godot_parser-master
----test_parse_files.py(2KB)
----MANIFEST.in(77B)
----.travis.yml(308B)
----requirements_dev.txt(86B)
----.pylintrc(432B)
----godot_parser()
--------structure.py(1KB)
--------values.py(1KB)
--------util.py(1KB)
--------__init__.py(153B)
--------sections.py(8KB)
--------tree.py(11KB)
--------objects.py(5KB)
--------files.py(15KB)
----tests()
--------test_sections.py(3KB)
--------test_gdfile.py(8KB)
--------test_objects.py(3KB)
--------test_tree.py(11KB)
--------test_parser.py(3KB)
--------__init__.py(0B)
----tox.ini(930B)
----requirements_test.txt(45B)
----LICENSE(1KB)
----CHANGES.md(214B)
----setup.cfg(233B)
----setup.py(2KB)
----.gitignore(2KB)
----.envrc(14B)
----README.md(4KB)
----.bumpversion.cfg(130B)

网友评论