2 using System.Collections.Generic;
9 public partial class FileManager
14 throw new InvalidOperationException(
"Content can not be loaded here, because the game has not been initialized." );
17 return new LoadState( contentFile, assetName );
23 throw new InvalidOperationException(
"Content can not be loaded here, because the game has not been initialized." );
25 byte[] contentData =
Game.
Instance.Content.Load<byte[]>( assetName );
26 MemoryStream contentStream =
new MemoryStream( contentData );
30 T result = state.
Load<
T>( obj,
"default" );
object Load(object obj, Type type, string name)
T LoadContent< T >(T obj, string assetName)
LoadState BeginLoadContent(string assetName)
LoadState BeginLoad(string fileName)
Peliluokka reaaliaikaisille peleille.