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