So I am at present engaged on a Sport Engine for my College and I got here to the purpose of integrating an ECS.
Factor is, I am at present a bit uncertain if it is okay to have setters and getters for particular courses. Like implementing a setter for my rework that lets the system that accesses the rework part simply add relative rotation/motion. I additionally tried to outsource these features right into a separate util class. Particularly in instances the place I might name the part from a number of techniques which might result in duplicate code if I did not have any form of setter or util class.
Now what I am questioning do I waste a number of the effectivity of the ECS and Reminiscence alignment by together with these setters/getters or does that not matter? I am somewhat confused right here because of the assertion “parts needs to be pure knowledge”.