Skip to content

redcodestudios/legion_script

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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