mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-26 17:38:10 +08:00
21 lines
659 B
C#
21 lines
659 B
C#
// ---------------------------------------------------------------------------------------------
|
|
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
|
|
// See LICENSE file in the project root for license information.
|
|
// ---------------------------------------------------------------------------------------------
|
|
|
|
namespace Core.DataLoader
|
|
{
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// Texture2D provider.
|
|
/// </summary>
|
|
public interface ITextureResourceProvider
|
|
{
|
|
string GetTexturePath(string name);
|
|
|
|
Texture2D GetTexture(string name);
|
|
|
|
Texture2D GetTexture(string name, out bool hasAlphaChannel);
|
|
}
|
|
} |