/******************************************************** * GameServiceContainer.h * * * * XFX GameServiceContainer definition file * * Copyright (c) XFX Team. All Rights Reserved * ********************************************************/ #ifndef _XFX_GAMESERVICECONTAINER_ #define _XFX_GAMESERVICECONTAINER_ #include #include #include using namespace System; using namespace System::Collections::Generic; namespace XFX { // A collection of game services. class GameServiceContainer : public IServiceProvider { private: Dictionary _services; public: GameServiceContainer(); virtual ~GameServiceContainer() {} void AddService(const Type& serviceType, Object* provider); Object* GetService(const Type& ServiceType); void RemoveService(const Type& type); }; } #endif //_XFX_GAMESERVICECONTAINER_