Click or drag to resize
DigitalRuneGame Object Service

This section describes the game object service.

Game object service

The interface IGameObjectService is a service that manages a collection of game objects. Objects which have access to this interface can add new game objects or remove existing game objects. Game objects can be queried by their name. (All game objects managed by a game object service must have a unique name. See property GameObjectName.)

The interface is implemented by the GameObjectManager. The game object manager is, in most cases, created and owned by the main game class. The manager has an Update method which updates all game objects and is usually called once per frame in the game loop.