5 using Windows.Storage.Streams;
10 public partial class FileManager
15 throw new InvalidOperationException(
"Content can not be loaded here, because the game has not been initialized." );
18 return new LoadState( contentFile, assetName );
24 throw new InvalidOperationException(
"Content can not be loaded here, because the game has not been initialized." );
26 byte[] contentData =
Game.
Instance.Content.Load<
byte[]>( assetName );
27 MemoryStream contentStream =
new MemoryStream( contentData );
31 T result = state.
Load<T>( obj,
"default" );