2010-07-27 13:42:07 +00:00
|
|
|
//
|
|
|
|
// GameComponentCollection.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 27.7.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "System.h"
|
|
|
|
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
|
|
|
|
|
|
|
@interface GameComponentCollection : NSObject <NSFastEnumeration> {
|
|
|
|
NSMutableArray *components;
|
|
|
|
Event *componentAdded;
|
|
|
|
Event *componentRemoved;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) Event *componentAdded;
|
|
|
|
@property (nonatomic, readonly) Event *componentRemoved;
|
2011-01-15 02:05:37 +00:00
|
|
|
@property (nonatomic, readonly) int count;
|
|
|
|
|
|
|
|
- (id<IGameComponent>)itemAt:(int)index;
|
2010-07-27 13:42:07 +00:00
|
|
|
|
|
|
|
- (void) addComponent:(id<IGameComponent>)component;
|
|
|
|
- (void) removeComponent:(id<IGameComponent>)component;
|
2013-06-22 11:41:56 +02:00
|
|
|
- (BOOL) contains:(id<IGameComponent>)component;
|
2010-07-27 13:42:07 +00:00
|
|
|
|
|
|
|
@end
|