2010-10-19 13:31:39 +00:00
|
|
|
//
|
|
|
|
// DrawableGameComponent.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 12.10.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "Retronator.Xni.Framework.Graphics.classes.h"
|
|
|
|
#import "GameComponent.h"
|
|
|
|
#import "IDrawable.h"
|
|
|
|
|
|
|
|
@interface DrawableGameComponent : GameComponent <IDrawable> {
|
|
|
|
@private
|
|
|
|
BOOL visible;
|
|
|
|
int drawOrder;
|
|
|
|
|
|
|
|
Event *visibleChanged;
|
|
|
|
Event *drawOrderChanged;
|
|
|
|
|
|
|
|
id<IGraphicsDeviceService> graphicsDeviceService;
|
2010-11-02 09:29:19 +00:00
|
|
|
|
|
|
|
BOOL contentLoaded;
|
2010-10-19 13:31:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) GraphicsDevice* graphicsDevice;
|
|
|
|
|
|
|
|
- (void) loadContent;
|
|
|
|
- (void) unloadContent;
|
|
|
|
|
2012-05-14 08:40:49 +00:00
|
|
|
- (void) onVisibleChanged;
|
|
|
|
- (void) onDrawOrderChanged;
|
|
|
|
|
2010-10-19 13:31:39 +00:00
|
|
|
@end
|