2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* GameServiceContainer.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX GameServiceContainer definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_GAMESERVICECONTAINER_
|
|
|
|
|
#define _XFX_GAMESERVICECONTAINER_
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
#include <System/Object.h>
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
/// <Summary>
|
|
|
|
|
/// A collection of game services.
|
|
|
|
|
/// </summary>
|
2010-12-27 01:01:25 +00:00
|
|
|
|
class GameServiceContainer : public IServiceProvider
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
2010-12-27 01:01:25 +00:00
|
|
|
|
void AddService(Object* provider);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
GameServiceContainer();
|
2010-12-27 01:01:25 +00:00
|
|
|
|
Object* GetService(Object* serviceType);
|
|
|
|
|
void RemoveService(Object* type);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_GAMESERVICECONTAINER_H
|