using System; using System.Collections.Generic; using System.Linq; using System.Text; using Thousandto.Core.Asset; public class LuaAssetUtils { //静态方法获取玩家的骨骼信息 public static int GetPlayerBoneIndex( int modelID ) { return AssetUtils.GetPlayerBoneIndex( modelID ); } //获取资源的全路径 public static string GetAssetFullPath( string relatePath, string extension ) { return AssetUtils.GetAssetFullPath( relatePath, extension ); } //获取声音文件路径 public static string GetAudioFilePath( string name, AudioTypeCode code ) { return AssetUtils.GetAudioFilePath( name, code ); } //获取视频文件路径 public static string GetVideoFilePath(string name) { return AssetUtils.GetVideoFilePath(name); } //获取动作路径 public static string GetAnimationPath( string ownerTypr, string boneIndex, string animClipName ) { return AssetUtils.GetAnimationPath( ownerTypr, boneIndex, animClipName ); } //判断文件当前路径是否为UI public static bool IsUIRes( string filePath ) { return AssetUtils.IsUIRes( filePath ); } /// /// 获取模型类型 /// /// 模型的名字 /// 返回模型的索引 /// public static ModelTypeCode GetModelTypeOutIndex( string modelName, out int idx ) { return AssetUtils.GetModelType( modelName, out idx ); } /// /// 获取模型类型 /// /// /// public static ModelTypeCode GetModelType( string modelName ) { return AssetUtils.GetModelType( modelName ); } /// /// 获取模型资源路径 /// /// 模型类型 /// 模型ID /// 是否展示 /// public static string GetModelAssetPath( ModelTypeCode type, int code, bool isShow = false ) { return AssetUtils.GetModelAssetPath( type, code, isShow ); } /// /// 获取模型的默认资源路径 /// /// 模型类型 /// /// 1.在获取角色的默认模型时的,职业参数信息. /// /// public static string GetPlaceHolderModelAssetPath( ModelTypeCode type, int param = 1 ) { return AssetUtils.GetPlaceHolderModelAssetPath( type, param ); } /// /// 获取图片的资源路径 /// /// 图片类型 /// 图片名字 /// public static string GetImageAssetPath( ImageTypeCode code, string name ) { return AssetUtils.GetImageAssetPath( code, name ); } /// /// 获取图片类型码 /// /// /// public static ImageTypeCode GetImageTypeCode( string texPath ) { return AssetUtils.GetImageTypeCode( texPath ); } /// /// 是否是特效图片的路径 /// /// /// public static bool IsVFXImagePath( string texPath ) { return AssetUtils.IsVFXImagePath( texPath ); } /// /// 处理路径的分割符 /// /// /// public static string ProcessPath( string path ) { return AssetUtils.ProcessPath( path ); } /// /// 获取Path,不带扩展名 /// /// /// public static string GetPathWithOutExt( string path ) { return AssetUtils.GetPathWithOutExt( path ); } /// /// 获取FileName,不带扩展名 /// /// /// public static string GetFileNameWithOutExt( string path ) { return AssetUtils.GetFileNameWithOutExt( path ); } //使某个路径的文件名小写的操作 public static string MakeFileNameToLower( string path ) { return AssetUtils.MakeFileNameToLower( path ); } }