Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

Api Suggestion

Open iliaga opened this issue 5 years ago • 2 comments

Hi,

I have an idea : make the CreateComponentWhatever api to return entity so we could construct entities with a fluent api. example :

using Entitas;

public sealed class MyComponent : IInitializeSystem
{

    void Initialize()
    {
        createEntity().AddT1(param,param).AddT2(param);
    }

}

Cheers

iliaga avatar Jan 06 '19 09:01 iliaga

you can find a answer from this. #429

majorika avatar Jan 06 '19 10:01 majorika

Fluent Api for components will come back! :)

sschmid avatar Sep 08 '22 21:09 sschmid