Files
WoW-Hybrid-gateway/include/gateway/spell_visual_kit_profile.hpp
2026-11-23 03:28:32 +02:00

104 lines
7.9 KiB
C++

// Generated by ops/spell_visual_kit_profile.py.
// source kits SHA-256 1798a559605ad068d9754cbce93b60fad08b05d7f0188e30950793666120414f
// native kits SHA-256 002a8eb2a2335128b70ddc764ef72fd11945563e84636aab0ccb35563e7760ce
// kit imports SHA-256 7fd1040eb1b474ef6fe72117419f6fdb97f474f392e4152175cc9fb2878f381c
// stock 1.12 IDs SHA-256 701d136862d9ee83e967fca6f5f058423a70ab540714c7ad02ae970fa91ad493
// source effect names SHA-256 fdde9c6641593993d00a847adf61e3efd97af89c2f8f12fdb84f3f2bdb888a78
#pragma once
#include <algorithm>
#include <cstdint>
#include <iterator>
#include <utility>
namespace gateway::spell_visual_kit_profile {
inline constexpr std::pair<uint32_t, uint32_t> shared_ranges[] = {
{1, 28}, {30, 209}, {211, 235}, {237, 240}, {242, 373}, {378, 566},
{586, 589}, {606, 609}, {626, 626}, {646, 668}, {686, 705}, {716, 753},
{764, 871}, {884, 907}, {924, 929}, {946, 952}, {964, 965}, {984, 992},
{1004, 1007}, {1024, 1028}, {1044, 1044}, {1064, 1070}, {1084, 1084}, {1104, 1104},
{1124, 1125}, {1144, 1144}, {1164, 1168}, {1184, 1187}, {1204, 1206}, {1224, 1226},
{1244, 1244}, {1264, 1264}, {1284, 1286}, {1304, 1305}, {1324, 1324}, {1344, 1344},
{1364, 1369}, {1384, 1384}, {1404, 1404}, {1424, 1424}, {1444, 1444}, {1464, 1464},
{1484, 1486}, {1504, 1504}, {1524, 1524}, {1544, 1549}, {1564, 1564}, {1584, 1586},
{1604, 1611}, {1624, 1624}, {1644, 1644}, {1664, 1666}, {1684, 1684}, {1704, 1704},
{1724, 1724}, {1744, 1744}, {1764, 1764}, {1784, 1785}, {1804, 1807}, {1824, 1825},
{1844, 1844}, {1864, 1866}, {1884, 1884}, {1904, 1905}, {1924, 1924}, {1944, 1947},
{1964, 1964}, {1984, 1985}, {2004, 2004}, {2024, 2025}, {2044, 2045}, {2064, 2065},
{2084, 2090}, {2109, 2113}, {2129, 2129}, {2149, 2153}, {2169, 2169}, {2189, 2189},
{2209, 2212}, {2229, 2229}, {2249, 2249}, {2269, 2271}, {2289, 2290}, {2309, 2309},
{2329, 2329}, {2349, 2352}, {2369, 2373}, {2389, 2390}, {2409, 2409}, {2429, 2429},
{2449, 2449}, {2469, 2471}, {2489, 2492}, {2509, 2509}, {2529, 2530}, {2549, 2549},
{2569, 2569}, {2589, 2590}, {2609, 2616}, {2629, 2629}, {2649, 2651}, {2669, 2670},
{2689, 2689}, {2709, 2709}, {2729, 2730}, {2749, 2750}, {2769, 2769}, {2789, 2790},
{2809, 2812}, {2829, 2830}, {2849, 2850}, {2869, 2869}, {2889, 2896}, {2909, 2910},
{2929, 2932}, {2949, 2950}, {2969, 2977}, {2989, 2992}, {3009, 3010}, {3029, 3036},
{3049, 3056}, {3069, 3072}, {3089, 3089}, {3109, 3110}, {3129, 3129}, {3149, 3154},
{3169, 3170}, {3189, 3189}, {3209, 3210}, {3229, 3229}, {3249, 3250}, {3269, 3272},
{3289, 3295}, {3309, 3309}, {3329, 3332}, {3349, 3351}, {3369, 3385}, {3389, 3395},
{3409, 3415}, {3429, 3437}, {3449, 3450}, {3469, 3472}, {3489, 3490}, {3509, 3509},
{3529, 3531}, {3549, 3549}, {3569, 3569}, {3589, 3595}, {3609, 3612}, {3629, 3629},
{3649, 3650}, {3669, 3673}, {3689, 3689}, {3709, 3709}, {3729, 3729}, {3749, 3753},
{3769, 3777}, {3789, 3790}, {3809, 3809}, {3829, 3829}, {3849, 3854}, {3869, 3873},
{3889, 3891}, {3909, 3910}, {3929, 3930}, {3949, 3949}, {3969, 3969}, {3989, 3989},
{4009, 4013}, {4029, 4031}, {4049, 4051}, {4069, 4070}, {4089, 4091}, {4109, 4109},
{4129, 4132}, {4149, 4149}, {4169, 4169}, {4189, 4194}, {4209, 4213}, {4229, 4229},
{4249, 4249}, {4269, 4269}, {4289, 4290}, {4309, 4311}, {4329, 4329}, {4349, 4349},
{4369, 4369}, {4389, 4390}, {4409, 4409}, {4429, 4429}, {4449, 4451}, {4469, 4469},
{4489, 4492}, {4509, 4509}, {4529, 4529}, {4549, 4551}, {4569, 4570}, {4589, 4589},
{4609, 4609}, {4629, 4629}, {4649, 4649}, {4669, 4669}, {4689, 4690}, {4709, 4709},
{4729, 4729}, {4749, 4751}, {4769, 4770}, {4789, 4789}, {4809, 4811}, {4829, 4832},
{4849, 4850}, {4869, 4870}, {4889, 4891}, {4909, 4911}, {4929, 4931}, {4949, 4949},
{4969, 4969}, {4989, 4991}, {5009, 5011}, {5029, 5037}, {5049, 5049}, {5069, 5069},
{5089, 5094}, {5109, 5111}, {5129, 5135}, {5149, 5153}, {5169, 5169}, {5189, 5189},
{5209, 5209}, {5229, 5229}, {5249, 5249}, {5269, 5269}, {5289, 5290}, {5309, 5310},
{5329, 5332}, {5349, 5350}, {5369, 5372}, {5389, 5391}, {5409, 5409}, {5429, 5429},
{5449, 5450}, {5469, 5470}, {5489, 5489}, {5509, 5510}, {5529, 5529}, {5549, 5549},
{5569, 5569}, {5589, 5591}, {5629, 5629}, {5649, 5650}, {5669, 5670}, {5689, 5689},
{5709, 5709}, {5729, 5729}, {5749, 5749}, {5769, 5771}, {5789, 5789}, {5809, 5810},
{5829, 5829}, {5850, 5852}, {5869, 5870}, {5889, 5890}, {5892, 5892}, {5894, 5899},
{5909, 5909}, {5929, 5930}, {5949, 5951}, {5969, 5969}, {5989, 5990}, {6009, 6009},
{6029, 6031}, {6049, 6050}, {6069, 6074}, {6089, 6100}, {6109, 6109}, {6129, 6136},
{6149, 6151}, {6169, 6170}, {6189, 6190}, {6209, 6209}, {6229, 6229}, {6249, 6250},
{6269, 6271}, {6289, 6289}, {6309, 6311}, {6329, 6334}, {6349, 6359}, {6369, 6379},
{6381, 6385}, {6387, 6419}, {6421, 6434}, {6436, 6534}, {6536, 6539}, {6541, 6541},
{6543, 6587}, {6590, 6593}, {6596, 6597}, {6599, 6600}, {6602, 6606}, {6609, 6612},
{6616, 6624}, {6631, 6633}, {6636, 6639}, {6643, 6644}, {6650, 6650}, {6652, 6652},
{6654, 6654}, {6666, 6666}, {6698, 6698}, {6708, 6709}, {6723, 6724}, {6728, 6728},
{6731, 6731}, {6753, 6753}, {6756, 6757}, {6809, 6810},
};
inline constexpr std::pair<uint32_t, uint32_t> imported_kits[] = {
{5849, 410000}, {5893, 410001}, {6811, 410002}, {6813, 410003}, {6892, 410004}, {6893, 410005},
{6894, 410006}, {6895, 410007}, {6896, 410008}, {6900, 410009}, {6901, 410010}, {6902, 410011},
{6904, 410012}, {6907, 410013}, {6911, 410015}, {6913, 410016}, {6918, 410018}, {6919, 410017},
{6921, 410020}, {6922, 410019}, {6923, 410014}, {6926, 410021}, {6927, 410022}, {6928, 410023},
{6929, 410024}, {6930, 410025}, {6931, 410026}, {6932, 410027}, {6933, 410028}, {6934, 410029},
{6935, 410031}, {6936, 410030}, {6941, 410032}, {6942, 410034}, {6943, 410033}, {6944, 410035},
{6945, 410036}, {6947, 410038}, {6948, 410037}, {6951, 410039}, {6953, 410040}, {6954, 410041},
{6955, 410042}, {6956, 410043}, {6957, 410044}, {6958, 410045}, {6959, 410046}, {6960, 410047},
{6961, 410048}, {6964, 410049}, {6965, 410050}, {6966, 410051}, {6967, 410052}, {6968, 410053},
{6974, 410054}, {6975, 410055}, {6976, 410056}, {6977, 410057}, {6978, 410058}, {6979, 410059},
{6980, 410060}, {6981, 410061}, {6982, 410062}, {6983, 410063}, {6984, 410065}, {6985, 410067},
{6986, 410066}, {6987, 410068}, {6988, 410069}, {6990, 410070}, {6991, 410071}, {6992, 410074},
{6993, 410072}, {6994, 410073}, {6995, 410075}, {6996, 410076}, {6997, 410077}, {6998, 410078},
{6999, 410079}, {7000, 410080}, {7001, 410081}, {7002, 410083}, {7003, 410082}, {7004, 410084},
{7006, 410085}, {7007, 410086}, {7008, 410087}, {7009, 410088}, {7010, 410089}, {7011, 410090},
{7012, 410091}, {7013, 410092}, {7014, 410093}, {7015, 410094}, {7016, 410095}, {7017, 410096},
{7018, 410097}, {7019, 410098}, {7020, 410099}, {7021, 410100}, {7022, 410101}, {7023, 410102},
{7024, 410103}, {7025, 410064}, {7026, 410104}, {7027, 410105}, {7028, 410106}, {7029, 410113},
{7030, 410107}, {7031, 410108}, {7032, 410109}, {7037, 410114}, {7038, 410115}, {7039, 410116},
{7040, 410110}, {7041, 410111}, {7042, 410112}, {7043, 410118}, {7044, 410119}, {7045, 410117},
{7046, 410120}, {65313, 410121}, {65336, 410122}, {65337, 410123},
};
inline uint32_t resolve(uint32_t kit) {
auto range = std::lower_bound(std::begin(shared_ranges), std::end(shared_ranges), kit,
[](auto interval, uint32_t id) { return interval.second < id; });
if (range != std::end(shared_ranges) && range->first <= kit) return kit;
auto imported = std::lower_bound(std::begin(imported_kits), std::end(imported_kits), kit,
[](auto pair, uint32_t id) { return pair.first < id; });
if (imported != std::end(imported_kits) && imported->first == kit) return imported->second;
return 0;
}
} // namespace gateway::spell_visual_kit_profile