1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
XNI/Classes/Retronator/Xni/Framework/GameComponentCollection.h
Samo Pajk c32f654678 Fixed bug where Event would crash if delegate was removed during event raise.
Added Contains method to GameComponentCollection.
Added Support for drawing triangle fans.
Added gitignore.
2013-06-22 11:41:56 +02:00

31 lines
758 B
Objective-C

//
// 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;
@property (nonatomic, readonly) int count;
- (id<IGameComponent>)itemAt:(int)index;
- (void) addComponent:(id<IGameComponent>)component;
- (void) removeComponent:(id<IGameComponent>)component;
- (BOOL) contains:(id<IGameComponent>)component;
@end