Service - nsgomez/gzcom-dll GitHub Wiki

A service is a class that implements cIGZSystemService. When registered with the GZCOM Framework, a service can receive callbacks on each tick and/or on each idle interval, allowing them to perform work for sustained periods of time, rather than having to wait for messages and hook triggers.

On top of having their own interface IDs, a service must also provide its own service ID, which is used by the framework for keeping track of unique services and allowing directors to get instances of them.

For a service to be able to do work, it must also be added to the list of on-tick or on-idle services using cIGZFrameWork::AddToTick and cIGZFrameWork::AddToOnIdle, respectively. Likewise, a service can suspend this functionality by using cIGZFrameWork::RemoveFromTick and cIGZFrameWork::RemoveFromOnIdle respectively.

See Also