mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added Exceptions to the System.Xml library Added missing DisplayModeCollection class Added Stack class (will be tested soon, and removed again if it doesn't work) * This revision's libXFX doesn't build. This is due to the List template not handling pointers to abstract classes the way I'd like it to do. Need to look into.
38 lines
922 B
C++
38 lines
922 B
C++
/********************************************************
|
|
* GameComponentCollection.h *
|
|
* *
|
|
* XFX GameComponentCollection definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _XFX_GAMECOMPONENTCOLLECTION_
|
|
#define _XFX_GAMECOMPONENTCOLLECTION_
|
|
|
|
#include "Interfaces.h"
|
|
#include <System/Collections/Generic/List.h>
|
|
|
|
using namespace System::Collections::Generic;
|
|
|
|
namespace XFX
|
|
{
|
|
|
|
/// <summary>
|
|
/// A collection of game components.
|
|
/// </summary>
|
|
class GameComponentCollection
|
|
{
|
|
private:
|
|
List<IGameComponent*> _components;
|
|
|
|
protected:
|
|
void ClearItems();
|
|
void InsertItem(int index, IGameComponent* item);
|
|
void RemoveItem(int index);
|
|
void SetItem(int index, IGameComponent* item);
|
|
|
|
public:
|
|
GameComponentCollection();
|
|
};
|
|
}
|
|
|
|
#endif //_XFX_GAMECOMPONENTCOLLECTION_
|