feat:公共方法添加设置获取topology
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user