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

38 lines
922 B
C
Raw Normal View History

/********************************************************
* GameComponentCollection.h *
* *
* XFX GameComponentCollection definition file *
* Copyright <EFBFBD> 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_