crownengine / crown

The flexible game engine.
https://www.crownengine.org
Other
2.14k stars 154 forks source link

data-compiler: generate data requirements for .lua files automatically #133

Closed dbartolini closed 1 year ago

dbartolini commented 1 year ago

When given any .lua resource, like:

require "units/cat"

function you_know()
    World.spawn_unit(w, "units/table")
    ...
end

The data-compiler should able to figure out its two requirements: "units/cat" and "units/table".

Current status: