Like this:
PComponent : IComponentData
AComponent : PComponent
BComponent : PComponent
then use them in some systems:
PSystemJob : IJobForEach
ASystemJob : IJobForEach
Etc.
Like this:
PComponent : IComponentData
AComponent : PComponent
BComponent : PComponent
then use them in some systems:
PSystemJob : IJobForEach
ASystemJob : IJobForEach
Etc.
You can not use inheritance as IComponentData has to be a struct.
Oh sorry I forgot that the component is a struct.
And is there any way to implement that?
PComponent : IComponentData
AComponent : IComponentData
BComponent : IComponentData
PSystemJob : IJobForEach
ASystemJob : IJobForEach<PComponent, AComponent>
BSystemJob : IJobForEach<PComponent, BComponent>
Thanks a lot.