summaryrefslogtreecommitdiffstats
path: root/src/consts.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2021-10-31 14:31:29 +0100
committerMaksymilian Jopek <maks@jopek.eu>2021-10-31 14:31:29 +0100
commit27075885e95bd0efc062920685e04287feb4b556 (patch)
tree0c51ab493589bd0ebd7b733ada697ed777aa08d1 /src/consts.ts
parentdbb66972ebd987f60e10939bfb4493f87bbc73c3 (diff)
downloadisiqandisi-27075885e95bd0efc062920685e04287feb4b556.tar.gz
isiqandisi-27075885e95bd0efc062920685e04287feb4b556.tar.zst
isiqandisi-27075885e95bd0efc062920685e04287feb4b556.zip
Almost the end
Diffstat (limited to 'src/consts.ts')
-rw-r--r--src/consts.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/consts.ts b/src/consts.ts
index dd1d5d6..f9bd177 100644
--- a/src/consts.ts
+++ b/src/consts.ts
@@ -1,6 +1,13 @@
+import Fridge from "./modules/Fridge";
+
export let _zi = -2147483648;
-export function zi() {
- if (_zi + 1 > 2147483647)
+export function zi(f: Fridge) {
+ if (_zi + 1 > 2147483647) {
_zi = -2147483648;
+ _zi = f.resetZi(_zi);
+ }
return (_zi++).toString();
}
+export function setZi(zi: number) {
+ _zi = zi;
+}