UNPKG

390 BJavaScriptView Raw
1var methodCache = {};
2/**
3 * 获取计算 ticks 的方法
4 * @param key 键值
5 * @returns 计算 ticks 的方法
6 */
7export function getTickMethod(key) {
8 return methodCache[key];
9}
10/**
11 * 注册计算 ticks 的方法
12 * @param key 键值
13 * @param method 方法
14 */
15export function registerTickMethod(key, method) {
16 methodCache[key] = method;
17}
18//# sourceMappingURL=register.js.map
\No newline at end of file