Go to file
wrenge d6b9d88e87 Fixed generation for bound structures 2023-01-27 13:07:02 +03:00
src Fixed generation for bound structures 2023-01-27 13:07:02 +03:00
tpl Fixed generation for bound structures 2023-01-27 13:07:02 +03:00
.gitignore Initial commit 2023-01-25 14:20:34 +03:00
CHANGELOG.md Updated changeling 2023-01-25 15:13:24 +03:00
README.md Initial commit 2023-01-25 14:20:34 +03:00
composer.json Initial commit 2023-01-25 14:20:34 +03:00

README.md

This package is used for code generation of C# meta structs for LeoECS using Twig templates

Example:

ecs.meta

struct TestComponent
  @bhl_ecs_component @ecs_gen_component @ecs_gen_authoring @ecs_serializable
  pos       : Vector3 
  fwd       : Vector3 
  width     : float    
  length    : float
end

This will automatically generate serializable TestComponent struct and TestComponentAuthoringComponent monobehaviour class to be added on game object.

Tags:

@ecs_gen_component - generates C# component @ecs_gen_authoring - generates authoring monobehaviour to be added on game object @ecs_serializable - makes component editable in inspector @ecs_tag - marks component tag