CCContentManager
CCContentManager
Cocos2DInheritance: System.Object
Constructors
CCContentManager(IServiceProvider)
CCContentManager(IServiceProvider)(System.IServiceProvider serviceProvider)
Parameters:
serviceProvider
(System.IServiceProvider)CCContentManager(IServiceProvider, string)
CCContentManager(IServiceProvider, string)(System.IServiceProvider serviceProvider, System.String rootDirectory)
Parameters:
serviceProvider
(System.IServiceProvider)rootDirectory
(System.String)Fields
SharedContentManager(Cocos2D.CCContentManager)
Properties
SearchPaths(System.Collections.Generic.ListSystem.String)
SearchResolutionsOrder(System.Collections.Generic.ListSystem.String)
Methods
GetAssetStream(string)
System.IO.Stream GetAssetStream(string)(System.String assetName)
Parameters:
assetName
(System.String)Returns:
System.IO.Stream
LoadFilenameLookupDictionaryFromFile(string)
LoadFilenameLookupDictionaryFromFile(string)(System.String filename)
Parameters:
filename
(System.String)Load(string)
T Load(string)(System.String assetName)
Parameters:
assetName
(System.String)Returns:
T
Example
Load(string, bool)
T Load(string, bool)(System.String assetName, System.Boolean weakReference)
Parameters:
assetName
(System.String)weakReference
(System.Boolean)Returns:
T
ReloadGraphicsAssets()
ReloadGraphicsAssets()()
Example
SetFilenameLookupDictionary(PlistDictionary)
SetFilenameLookupDictionary(PlistDictionary)(Cocos2D.PlistDictionary filenameLookupDict)
Parameters:
filenameLookupDict
(Cocos2D.PlistDictionary)TryLoad(string)
T TryLoad(string)(System.String assetName)
Parameters:
assetName
(System.String)Returns:
T
TryLoad(string, bool)
T TryLoad(string, bool)(System.String assetName, System.Boolean weakReference)
Parameters:
assetName
(System.String)weakReference
(System.Boolean)Returns:
T
Unload()
Unload()()
Example