public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager) { return(new UserInterfaceAsset( name, input.GetString("UserInterfaceData"), input.GetString("UserInterfaceFormat"))); }
public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager) { return(new LevelAsset( name, input.GetString("LevelData"), input.GetString("LevelDataFormat"))); }
public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager) { return(new FontAsset( _assetContentManager, name, input.GetString("FontName"), input.GetFloat("FontSize"), input.GetBoolean("UseKerning"), input.GetFloat("Spacing"), input.GetByteArray("Data"))); }
public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager) { var textureName = input.GetString("TextureName"); return(new TilesetAsset( name, textureName, assetManager.Get <TextureAsset>(textureName), input.GetInt32("CellWidth"), input.GetInt32("CellHeight"))); }
public static Type GetLoader(this IReadableSerializedAsset asset) { return(Type.GetType(asset.GetString("_Loader"))); }