Arch.Extended icon indicating copy to clipboard operation
Arch.Extended copied to clipboard

Is it possible to remove the world parameter from the constructor of basesystem?

Open Shadowblitz16 opened this issue 2 years ago • 4 comments

It would be nice if we didn't need to define a constructor when inheriting BaseSystem

Shadowblitz16 avatar Oct 02 '23 04:10 Shadowblitz16

Do you mean in the source-gen or just the basic BaseSystem? ^^ Its possible of course, can add that fairly easy :)

genaray avatar Oct 03 '23 14:10 genaray

Do you mean in the source-gen or just the basic BaseSystem? ^^ Its possible of course, can add that fairly easy :)

I mean in the BaseSystem.

Internally passing it to BaseSystem when it's created was what I was thinking

Shadowblitz16 avatar Oct 03 '23 18:10 Shadowblitz16

Do you mean in the source-gen or just the basic BaseSystem? ^^ Its possible of course, can add that fairly easy :)

I mean in the BaseSystem.

Internally passing it to BaseSystem when it's created was what I was thinking

Im just looking at it. I could make the World property public and add a empty ctor. This way one could create a basesystem without a world and set the world afterwards.

Would this be enough?

genaray avatar Oct 08 '23 15:10 genaray

This would probably be enough I am trying to make a very simple, fast and safe wrapper around arch so this would probably do

Shadowblitz16 avatar Oct 22 '23 04:10 Shadowblitz16