feat:公共方法添加设置获取topology

This commit is contained in:
zhangyu
2021-01-04 18:33:25 +08:00
parent 62f88ebf6c
commit af700f1a97

View File

@@ -30,6 +30,17 @@ export function getHexagon(key) {
return hexagonCache[`hexagon${key}`];
}
const topologyCache = {};
export function getTopology(key) {
return topologyCache[`topology${key}`];
}
export function setTopology(key, value) {
topologyCache[`topology${key}`] = value;
}
export function setHexagon(key, value) {
hexagonCache[`hexagon${key}`] = value;
}