public class GameServiceContainer
extends java.lang.Object
implements System.IServiceProvider
Constructor and Description |
---|
GameServiceContainer()
Initializes a new instance of this class, which represents a collection of game services.
|
Modifier and Type | Method and Description |
---|---|
void |
AddService(java.lang.Class type,
java.lang.Object provider)
Adds a service to the GameServiceContainer.
|
java.lang.Object |
GetService(java.lang.Class type)
Gets the object providing a specified service.
|
void |
RemoveService(java.lang.Class type)
Removes the object providing a specified service.
|
public GameServiceContainer()
public void AddService(java.lang.Class type, java.lang.Object provider)
type
- The type of service to add.provider
- The service provider to add.public java.lang.Object GetService(java.lang.Class type)
GetService
in interface System.IServiceProvider
type
- The type of service.public void RemoveService(java.lang.Class type)
type
- The type of service.