UNPKG

602 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.registerTickMethod = exports.getTickMethod = void 0;
4var methodCache = {};
5/**
6 * 获取计算 ticks 的方法
7 * @param key 键值
8 * @returns 计算 ticks 的方法
9 */
10function getTickMethod(key) {
11 return methodCache[key];
12}
13exports.getTickMethod = getTickMethod;
14/**
15 * 注册计算 ticks 的方法
16 * @param key 键值
17 * @param method 方法
18 */
19function registerTickMethod(key, method) {
20 methodCache[key] = method;
21}
22exports.registerTickMethod = registerTickMethod;
23//# sourceMappingURL=register.js.map
\No newline at end of file