Skip to content

Instantly share code, notes, and snippets.

@Thomvis
Created October 2, 2009 10:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thomvis/199601 to your computer and use it in GitHub Desktop.
Save Thomvis/199601 to your computer and use it in GitHub Desktop.
//
// Loader.h
// MatchUp
//
// Created by Thomas Visser on 12/06/2009.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Loadable.h"
#import "LoadableDelegate.h"
#import "cocos2d.h"
@interface Loader : NSOperation <Loadable, LoadableDelegate> {
NSArray * loadables;
NSObject <LoadableDelegate> * delegate;
BOOL asynchronous;
float * progresses;
}
- (id) initWithLoadables: (NSArray *) ploadables asynchronous: (BOOL) asyn;
+ (id) loaderWithLoadables: (NSArray *) loadables asynchronous: (BOOL) asyn;
- (id) initWithLoadable: (NSObject <Loadable> *) loadable asynchronous: (BOOL) asyn;
+ (id) loaderWithLoadable: (NSObject <Loadable> *) loadable asynchronous: (BOOL) asyn;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment