2010-10-19 13:31:39 +00:00
|
|
|
//
|
|
|
|
// GameComponent.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 12.10.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "System.classes.h"
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
|
|
|
#import "IGameComponent.h"
|
|
|
|
#import "IUpdatable.h"
|
|
|
|
|
|
|
|
@interface GameComponent : NSObject <IGameComponent, IUpdatable> {
|
|
|
|
@private
|
|
|
|
BOOL enabled;
|
|
|
|
Game *game;
|
|
|
|
int updateOrder;
|
|
|
|
|
|
|
|
Event *enabledChanged;
|
|
|
|
Event *updateOrderChanged;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithGame:(Game*) theGame;
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) Game *game;
|
|
|
|
|
2012-05-14 08:40:49 +00:00
|
|
|
- (void) onEnabledChanged;
|
|
|
|
- (void) onUpdateOrderChanged;
|
|
|
|
|
2010-10-19 13:31:39 +00:00
|
|
|
@end
|