﻿using System.Collections.Generic;
using JLGames.RocketDriver.Samples.ServiceDemo.Cfg.CfgConst;

namespace JLGames.RocketDriver.Samples.ServiceDemo.Service.Material
{
    internal static class GameMaterialPathUtils
    {
        private static readonly Dictionary<int, string> PrefixMap = new Dictionary<int, string>()
        {
            {ConstMaterialType.Resource, "res"},
        };

        public static string GetIconPath(int materialType)
        {
            return $"Atlas/Icon_{materialType}.png";
        }

        public static string GetIconSubName(int materialType, int iconId)
        {
            return $"{PrefixMap[materialType]}_{iconId}";
        }
    }
}