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
Services are user-defined classes that Systems can access. They can be used as "loopholes" around the ECS system (e.g. to allow systems to talk directly to each other), or to allow systems to access game data which is stored outside the ECS.
Declaration
Services are declared in YAML like other custom types:
Implementation of services is entirely up to the user. The only requirement is that they must extend Halley::Service. They can then be accessed by systems by declaring the system as needing that service, see Systems for more details.