Skip to content

redcodestudios/legion_script

Repository files navigation

legion_script

An extensible scripting system for Legion ECS.

Introduction

This is result of a year of research and contact with Rust, Amethyst and Legion community. The main goal of this POC is to add scripting capabilities to Legion ECS. Currently it supports Python as scripting langauge but it has an architecture extensible to other languages. This work was based by the Amethyst Scripting RFC.

Features

Currently is possible to define components and create/query entities on Legion using Python.

Running

This is a POC and no effort was made to add multiplatform features. Therefore this crate only works on linux platforms

To run this project you need Rust and Python 3.7 installed. After installing both run this command inside the folder:

$ cargo run --example hello

This will run the example hello.rs that prints various different logs to demonstrate how things are being done.
The script being executed is python/hello.py