﻿using System.Collections.Generic;

namespace JLGames.RocketDriver.Games.RpgMaterial.Service
{
    internal static class InternalUtil
    {
        private static readonly List<string> m_Temp = new List<string>();

        public static string Id2EKey(int id, int uId)
        {
            return $"{id}_{uId}";
        }

//        public static string[] IdArr2EKey(int[] idArr)
//        {
//            if (null == idArr) return null;
//            var rs = new string[idArr.Length];
//            if (rs.Length > 0)
//            {
//                for (var index = rs.Length - 1; index >= 0; index--)
//                {
//                    rs[index] = Id2EKey(idArr[index]);
//                }
//            }
//
//            return rs;
//        }
//
//        public static string[] IdArr2EKey(IEnumerable<int> idArr)
//        {
//            if (null == idArr) return null;
//            m_Temp.Clear();
//            foreach (var id in idArr)
//            {
//                m_Temp.Add(Id2EKey(id));
//            }
//
//            return m_Temp.ToArray();
//        }
    }
}