Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajboni/godot-drafft-import
Import drafft exports in godot.
https://github.com/ajboni/godot-drafft-import
dialogue-tree gdds godot speechr
Last synced: about 2 months ago
JSON representation
Import drafft exports in godot.
- Host: GitHub
- URL: https://github.com/ajboni/godot-drafft-import
- Owner: ajboni
- License: gpl-3.0
- Created: 2020-10-25T04:59:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T02:10:45.000Z (almost 4 years ago)
- Last Synced: 2024-12-08T16:55:14.602Z (about 2 months ago)
- Topics: dialogue-tree, gdds, godot, speechr
- Language: GDScript
- Homepage:
- Size: 83 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Godot Drafft Import
This project provide a class to parse [drafft](https://drafft.aboni.dev) export and a sample project showing some ways to interact with it.
It uses the wonderful [Golden Gadget](https://monnef.gitlab.io/golden-gadget/) library to do queries.
## Usage in your project
1. Download or clone the repo.
2. Copy `drafft` folder into your project folder.
3. Parse the database:
```
var dbPath = "res://drafft_export.json"
var db = DrafftImporter.new(dbPath)
```
4. Interact:
```
# Get Item by ID
var specificScript = db.findItemById("scripts", "378bc60a-87de-4362-aa63-c858eda00490")
print("Script with id 378... is called %s" % specificScript.name)
```More examples at [drafft/example.gd](drafft/example.gd)
## Contribute
Contributions are really welcomed, we could benefit from:
* A bigger data source.
* More examples.
* More utility functions.
* A basic dialogue system.