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>
|
|
|
|
|
|
2011-01-16 00:47:37 +00:00
|
|
|
|
using namespace System;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
// A collection of game services.
|
|
|
|
|
class GameServiceContainer : public IServiceProvider, virtual Object
|
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
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2011-01-16 00:47:37 +00:00
|
|
|
|
#endif //_XFX_GAMESERVICECONTAINER_
|