|
|
@@ -11,6 +11,17 @@ function memoryGap(): number { |
|
|
|
return memorySide() + memorySpace() |
|
|
|
} |
|
|
|
|
|
|
|
function memoryGroups(c: Context): Record<number, number> { |
|
|
|
var items: Record<number, number> = {}; |
|
|
|
// @ts-ignore |
|
|
|
let ids = utsIndexArray(c.itemsCount); |
|
|
|
ids.forEach(i => { |
|
|
|
// @ts-ignore |
|
|
|
items[i] = utsFloor(Number(i) / 2) |
|
|
|
}) |
|
|
|
return items; |
|
|
|
} |
|
|
|
|
|
|
|
function memorySide(): number { |
|
|
|
return 50 |
|
|
|
} |
|
|
|