findDataById() public static method

public static findDataById ( int strRefID, bool withFileName = false ) : string
strRefID int
withFileName bool
return string
コード例 #1
0
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            IMEPackage pcc = values[1] as IMEPackage;

            if (values[0] is int && pcc != null)
            {
                int strRef = (int)values[0];
                switch (pcc.Game)
                {
                case MEGame.ME1:
                    return($"\"{(new ME1Explorer.Unreal.Classes.BioTlkFileSet(pcc as ME1Package)).findDataById(strRef)}\"");

                case MEGame.ME2:
                    return($"\"{ME2Explorer.ME2TalkFiles.findDataById(strRef)}\"");

                case MEGame.ME3:
                    return($"\"{ME3TalkFiles.findDataById(strRef)}\"");

                case MEGame.UDK:
                    return("UDK StrRef not supported");
                }
            }
            return("No Data");
        }