flecs_ecs 0.2.2

Rust API for the C/CPP flecs ECS library <https://github.com/SanderMertens/flecs>
Documentation
// To see what the result of parsing this file looks like, copy the code and
// paste it into the editor at https://flecs.dev/explorer
//
// To load this file yourself, call `World::run_file("strings.flecs");`

// Flecs script component values can be populated with strings. To see how this works,
// we first need to create a component type (see reflection example).
using flecs.meta

// Create tags
Vertex { }
Fragment { }

struct Shader {
  filename = string
  code = string
}

// Create component values with strings
my_pipeline {
  (Shader, Vertex): {
    // Normal string
    filename: "vert.glsl",

    // Multiline string
    code: `
      void main() \{
        gl_Position = pos;
      }`
    }

  (Shader, Fragment): {
    filename: "frag.glsl",
    code: `
      void main() \{
        frag_color = color;
      }`
    }
}