You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To minimize the public API to the core concepts of ECS, I propose we unexport the Systems type. It may be considered an internal detail of the ecs package, and should users of ecs want to use a similar priority queue outside of World, the implementation of the sort.Sort interface is trivial.
The Systems type is only used by the private systems field of the World structure, and the Systems method on World returns []System rather than Systems. Therefore we may easily unexport it, without breaking too many users. And, obviously the time to make changes to core packages like ecs is now since #13 was just merged, and all users have to update their code anyways.
To minimize the public API to the core concepts of ECS, I propose we unexport the Systems type. It may be considered an internal detail of the
ecs
package, and should users ofecs
want to use a similar priority queue outside ofWorld
, the implementation of thesort.Sort
interface is trivial.The
Systems
type is only used by the privatesystems
field of theWorld
structure, and theSystems
method onWorld
returns[]System
rather thanSystems
. Therefore we may easily unexport it, without breaking too many users. And, obviously the time to make changes to core packages likeecs
is now since #13 was just merged, and all users have to update their code anyways.From world.go
The text was updated successfully, but these errors were encountered: