Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Conversation

@randy408
Copy link
Collaborator

@randy408 randy408 commented Oct 6, 2020

In conjunction with ECS_ALIAS() it would allow typedefs + meta aliases of external types.

ECS_STRUCT_EXTERN(vec3,
{
    float x;
    float y;
    float z;
});

ECS_ALIAS(vec3, Position); //meta alias and typedef

ECS_STRUCT(example,
{
    Position p;
    bool b;
});

//everything is registered with the same macro
ECS_META(world, vec3);
ECS_META(world, Position);
ECS_META(world, example);

@randy408 randy408 changed the title External type support External type support at compile time Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants