NTAssetPackage


@interface NTAssetPackage : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

An abstract asset package class. Contains methods to list and load assets.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Returns list of assets in the asset package. All listed assets can read using loadAsset API.

    Declaration

    Objective-C

    - (NTStringVector *)getAssetNames;

    Return Value

    List of asset names.

  • Loads the specified asset from the asset package.

    Declaration

    Objective-C

    - (NTBinaryData *)loadAsset:(NSString *)name;

    Parameters

    name

    The asset name to read.

    Return Value

    Asset data, if the asset exists and was successfully read. Null pointer otherwise.

  • Undocumented

    Declaration

    Objective-C

    -(id)init;
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;