mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
29 lines
723 B
C++
29 lines
723 B
C++
/********************************************************
|
|
* GameServiceContainer.h *
|
|
* *
|
|
* XFX GameServiceContainer definition file *
|
|
* Copyright © 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
|