Fixed missed references to PersistentRef
This commit is contained in:
parent
5a59aaf4fc
commit
838ac46cf9
2 changed files with 4 additions and 10 deletions
|
@ -24,7 +24,7 @@
|
|||
import projInfo from "data/projInfo.json";
|
||||
import { CoercableComponent, StyleValue } from "features/feature";
|
||||
import { FeatureNode } from "game/layers";
|
||||
import { PersistentRef } from "game/persistence";
|
||||
import { Persistent } from "game/persistence";
|
||||
import player from "game/player";
|
||||
import { computeComponent, processedPropType, wrapRef } from "util/vue";
|
||||
import { computed, defineComponent, nextTick, PropType, Ref, ref, toRefs, unref, watch } from "vue";
|
||||
|
@ -46,7 +46,7 @@ export default defineComponent({
|
|||
required: true
|
||||
},
|
||||
minimized: {
|
||||
type: Object as PropType<PersistentRef<boolean>>,
|
||||
type: Object as PropType<Persistent<boolean>>,
|
||||
required: true
|
||||
},
|
||||
minWidth: {
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
import { getUniqueID, Replace } from "features/feature";
|
||||
import { globalBus } from "game/events";
|
||||
import { GenericLayer } from "game/layers";
|
||||
import {
|
||||
DefaultValue,
|
||||
Persistent,
|
||||
persistent,
|
||||
PersistentRef,
|
||||
PersistentState
|
||||
} from "game/persistence";
|
||||
import { DefaultValue, Persistent, persistent, PersistentState } from "game/persistence";
|
||||
import Decimal from "util/bignum";
|
||||
import { Computable, GetComputableType, processComputable } from "util/computed";
|
||||
import { createLazyProxy } from "util/proxies";
|
||||
|
@ -70,7 +64,7 @@ export function createReset<T extends ResetOptions>(
|
|||
}
|
||||
|
||||
const listeners: Record<string, Unsubscribe | undefined> = {};
|
||||
export function trackResetTime(layer: GenericLayer, reset: GenericReset): PersistentRef<Decimal> {
|
||||
export function trackResetTime(layer: GenericLayer, reset: GenericReset): Persistent<Decimal> {
|
||||
const resetTime = persistent<Decimal>(new Decimal(0));
|
||||
listeners[layer.id] = layer.on("preUpdate", diff => {
|
||||
resetTime.value = Decimal.add(resetTime.value, diff);
|
||||
|
|
Loading…
Reference in a new issue