Skip to content

Commit 257f3af

Browse files
committed
Refactoring: Minor renaming.
Removed double ;. Some formatting of methods in CCPackageManager's header.
1 parent f100553 commit 257f3af

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

cocos2d/CCPackageManager.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
* @param name Name of the package
8484
* @param enableAfterDownload If the package should be enabled in cocos2d after download. You can enable it with the enablePackage: method later on.
8585
*/
86-
- (CCPackage *)downloadPackageWithName:(NSString *)name enableAfterDownload:(BOOL)enableAfterDownload;
86+
- (CCPackage *)downloadPackageWithName:(NSString *)name
87+
enableAfterDownload:(BOOL)enableAfterDownload;
8788

8889
/**
8990
* Like the method above. Instead of using the baseURL, name and resolution you can provide the URL directly.
@@ -94,7 +95,9 @@
9495
* @param resolution Resolution of the package, e.g. phonehd, tablethd etc.
9596
* @param enableAfterDownload If the package should be enabled in cocos2d after download. You can enable it with the enablePackage: method later on.
9697
*/
97-
- (CCPackage *)downloadPackageWithName:(NSString *)name resolution:(NSString *)resolution enableAfterDownload:(BOOL)enableAfterDownload;
98+
- (CCPackage *)downloadPackageWithName:(NSString *)name
99+
resolution:(NSString *)resolution
100+
enableAfterDownload:(BOOL)enableAfterDownload;
98101

99102
/**
100103
* Like the method above. Instead of using the baseURL and name you can provide the URL directly.
@@ -104,7 +107,9 @@
104107
* @param remoteURL URL of the package to be downloaded
105108
* @param enableAfterDownload If the package should be enabled in cocos2d after download. You can enable it with the enablePackage: method later on.
106109
*/
107-
- (CCPackage *)downloadPackageWithName:(NSString *)name remoteURL:(NSURL *)remoteURL enableAfterDownload:(BOOL)enableAfterDownload;
110+
- (CCPackage *)downloadPackageWithName:(NSString *)name
111+
remoteURL:(NSURL *)remoteURL
112+
enableAfterDownload:(BOOL)enableAfterDownload;
108113

109114
/**
110115
* Like the method above. Instead of using the baseURL, name and resolution you can provide the URL directly.
@@ -115,7 +120,10 @@
115120
* @param remoteURL URL of the package to be downloaded
116121
* @param enableAfterDownload If the package should be enabled in cocos2d after download. You can enable it with the enablePackage: method later on.
117122
*/
118-
- (CCPackage *)downloadPackageWithName:(NSString *)name resolution:(NSString *)resolution remoteURL:(NSURL *)remoteURL enableAfterDownload:(BOOL)enableAfterDownload;
123+
- (CCPackage *)downloadPackageWithName:(NSString *)name
124+
resolution:(NSString *)resolution
125+
remoteURL:(NSURL *)remoteURL
126+
enableAfterDownload:(BOOL)enableAfterDownload;
119127

120128
/**
121129
* Downloads a package. This is supposed to work in conjunction with addPackage where a package is created without the package manager

cocos2d/CCPackageManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ - (void)loadPackages
7474

7575
[self enablePackages];
7676

77-
[self enqueuePausedDownloads];
77+
[self resumePausedDownloads];
7878

7979
[self restartUnzippingTasks];
8080

@@ -114,7 +114,7 @@ - (CCPackageUnzipper *)unzipperForPackage:(CCPackage *)aPackage
114114
return nil;
115115
}
116116

117-
- (void)enqueuePausedDownloads
117+
- (void)resumePausedDownloads
118118
{
119119
for (CCPackage *aPackage in _packages)
120120
{

cocos2d/CCPackageManagerDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* @param package The package for which the unzip process failed
6565
* @param error Pointer to an error object
6666
*/
67-
- (void)packageUnzippingFailed:(CCPackage *)package error:(NSError *)error;;
67+
- (void)packageUnzippingFailed:(CCPackage *)package error:(NSError *)error;
6868

6969
@optional
7070
/**

0 commit comments

Comments
 (0)