1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/GameServiceContainer.h

29 lines
723 B
C
Raw Normal View History

/********************************************************
* GameServiceContainer.h *
* *
* XFX GameServiceContainer definition file *
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GAMESERVICECONTAINER_
#define _XFX_GAMESERVICECONTAINER_
namespace XFX
{
/// <Summary>
/// A collection of game services.
/// </summary>
class GameServiceContainer
{
public:
template <class T>
void AddService(T type, void* provider);
GameServiceContainer();
template <class T>
void* GetService(T type);
template <class T>
void RemoveService(T type);
};
}
#endif //_XFX_GAMESERVICECONTAINER_H