|
1 | 1 | /* |
2 | | - * SpriteBuilder: http://www.spritebuilder.org |
3 | 2 | * |
4 | 3 | * Copyright (c) 2012 Zynga Inc. |
5 | 4 | * Copyright (c) 2013 Apportable Inc. |
|
28 | 27 | #import "cocos2d.h" |
29 | 28 |
|
30 | 29 | /** |
31 | | - The CCBReader loads SpriteBuilder (CCB) documents. |
| 30 | + The CCBReader loads CocosBuilder (CCB) documents. |
32 | 31 | |
33 | 32 | For the most part you'll just use one of these two methods: |
34 | 33 | |
|
41 | 40 | // load a CCB document wrapped in a CCScene instance |
42 | 41 | CCScene* scene = [CCBReader loadAsScene:@"MyNode"]; |
43 | 42 | |
44 | | - You can optionally pass an owner object to the CCBReader load methods. This owner object then gets assigned all of the SpriteBuilder document's member variables that are marked to be set to the "Owner". |
| 43 | + You can optionally pass an owner object to the CCBReader load methods. This owner object then gets assigned all of the CocosBuilder document's member variables that are marked to be set to the "Owner". |
45 | 44 | In all other cases owner is nil and assigning variables to Owner discards their assignment. |
46 | 45 | |
47 | | - When a SpriteBuilder document was loaded, all nodes created from the document will receive the didLoadFromCCB message, if implemented as follows: |
| 46 | + When a CocosBuilder document was loaded, all nodes created from the document will receive the didLoadFromCCB message, if implemented as follows: |
48 | 47 | |
49 | 48 | **Objective-C:** |
50 | 49 | |
|
58 | 57 | NSLog("%@ did load", self) |
59 | 58 | } |
60 | 59 | |
61 | | - Nodes created from a SpriteBuilder document will also have a valid CCAnimationManager instance assigned to their [CCNode animationManager] property. |
| 60 | + Nodes created from a CocosBuilder document will also have a valid CCAnimationManager instance assigned to their [CCNode animationManager] property. |
62 | 61 | */ |
63 | 62 |
|
64 | 63 | #define kCCBVersion 10 |
|
167 | 166 | /// ----------------------------------------------------------------------- |
168 | 167 |
|
169 | 168 | /** |
170 | | - * Call this method to configure the CCFileUtils to work correctly with SpriteBuilder. It will setup search paths for the resources to use with the current device and resolution. It assumes that the SpriteBuilder resources has been published to a directory named Published-iOS that has been added as a blue folder in Xcode. |
| 169 | + * Call this method to configure the CCFileUtils to work correctly with CocosBuilder. It will setup search paths for the resources to use with the current device and resolution. It assumes that the CocosBuilder resources has been published to a directory named Published-iOS that has been added as a blue folder in Xcode. |
171 | 170 | */ |
172 | 171 | + (void) configureCCFileUtils; |
173 | 172 |
|
|
183 | 182 | + (CCBReader*) reader; |
184 | 183 |
|
185 | 184 | /// ----------------------------------------------------------------------- |
186 | | -/// @name Loading SpriteBuilder documents |
| 185 | +/// @name Loading CocosBuilder documents |
187 | 186 | /// ----------------------------------------------------------------------- |
188 | 187 |
|
189 | 188 | /** |
|
214 | 213 | + (CCScene*) loadAsScene:(NSString*) file; |
215 | 214 |
|
216 | 215 | /// ----------------------------------------------------------------------- |
217 | | -/// @name Loading SpriteBuilder documents with custom owner |
| 216 | +/// @name Loading CocosBuilder documents with custom owner |
218 | 217 | /// ----------------------------------------------------------------------- |
219 | 218 |
|
220 | 219 | /** |
|
0 commit comments