mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
Events now call subscribers in order of subscription
git-svn-id: http://xni.googlecode.com/svn/XNI@113 ac433895-eea3-a490-d80a-17149a75e588
This commit is contained in:
parent
a2ab2a84e5
commit
95c733e3b6
@ -43,7 +43,7 @@
|
||||
do {
|
||||
runResult = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, YES);
|
||||
} while (runResult == kCFRunLoopRunHandledSource);
|
||||
|
||||
|
||||
[game tick];
|
||||
|
||||
// We release memory every frame.
|
||||
|
@ -11,7 +11,7 @@
|
||||
#import "System.classes.h"
|
||||
|
||||
@interface Event : NSObject {
|
||||
NSMutableSet *delegates;
|
||||
NSMutableArray *delegates;
|
||||
}
|
||||
|
||||
- (void) subscribeDelegate:(Delegate*)delegate;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
- (id) init {
|
||||
if (self = [super init]) {
|
||||
delegates = [[NSMutableSet alloc] init];
|
||||
delegates = [[NSMutableArray alloc] init];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
25ACE63C15F735B700EB9C26 /* RenderTarget2D.h in Headers */ = {isa = PBXBuildFile; fileRef = 25AE5D5115F5440B00B73D10 /* RenderTarget2D.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
25AE5D5315F5440B00B73D10 /* RenderTarget2D.h in Headers */ = {isa = PBXBuildFile; fileRef = 25AE5D5115F5440B00B73D10 /* RenderTarget2D.h */; };
|
||||
25AE5D5315F5440B00B73D10 /* RenderTarget2D.h in Headers */ = {isa = PBXBuildFile; fileRef = 25AE5D5115F5440B00B73D10 /* RenderTarget2D.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
25AE5D5415F5440B00B73D10 /* RenderTarget2D.m in Sources */ = {isa = PBXBuildFile; fileRef = 25AE5D5215F5440B00B73D10 /* RenderTarget2D.m */; };
|
||||
25B3F9E615F9CC0E00C7DF1E /* RenderTarget2D.m in Sources */ = {isa = PBXBuildFile; fileRef = 25AE5D5215F5440B00B73D10 /* RenderTarget2D.m */; };
|
||||
AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; };
|
||||
|
Loading…
x
Reference in New Issue
Block a user