1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/GameServiceContainer.h
Halofreak1990 40c4811c04 Got everything to compile again.
Began transforming of current API to represent XNA 4.0, which is cleaner.
Dictionary<TKey, TValue> should now work (sort of-- need to implement resizing and enumerating)
Currently hunting down GraphicsDevice initialization
Up next: (hopefully successful) rendering of primitives
2012-09-28 20:36:02 +00:00

36 lines
985 B
C++

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