Bug 25439 - Loading from isolated storage in CocosSharp
Summary: Loading from isolated storage in CocosSharp
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.2.0
Hardware: PC Mac OS
: --- enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-12-16 14:07 UTC by Dominic N [MSFT]
Modified: 2014-12-17 06:18 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Dominic N [MSFT] 2014-12-16 14:07:59 UTC
I have a request from a Priority Customer with regards to CocosSharps.

He noticed that "it's usually set to /Content which is a part of the application resource/bundle" and wants to know if there's "a way to load from isolated storage".

He would like to download the images, then create the sprites and scenes etc. Or download files then make them like files from the same ContentRootDirectory that CocosSharp expects.
Comment 3 kenneth.pouncey 2014-12-17 06:16:49 UTC
Dominic

Right now there is no way.  Depending on what he wants to load he can load the
images from stream using TitleContainer from MonoGame or opening a file stream
using the platforms API.  He would then pass the stream to CCSprite or
whichever he wants.

I also see he is familiar with this from Cocos2D-xna which means basically he
would follow the same strategy as he outlines there and has already modified.

If he wants the absolute full control over loading he would actually have to
follow the rules of MonoGame and write his own content manager or change the
following to suite his needs.  public class CCContentManager : ContentManager
which a link can be found here ->
https://github.com/mono/CocosSharp/blob/master/src/platform/CCContentManager.cs

We do not have any examples or any interface to interchange these in
CocosSharp.

We have tried to keep the system as high level as possible and for more control
over these types of scenarios people would actually go to MonoGame and not
CocosSharp.

Can you also ask him to fill out a feature request so that we can start getting
more information.  https://github.com/mono/CocosSharp/issues

I do not have access to the desk case and am reading from copy pasted
information from hipchat so may have missed some things.

Kenneth