5using 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" );
T LoadContent< T >(T obj, string assetName)
LoadState BeginLoadContent(string assetName)
LoadState BeginLoad(string fileName)
static Game Instance
Käynnissä olevan pelin pääolio.
object Load(object obj, Type type, string name)