mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-26 02:01:39 +00:00
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 projInfo from "data/projInfo.json";
|
||||||
import { CoercableComponent, StyleValue } from "features/feature";
|
import { CoercableComponent, StyleValue } from "features/feature";
|
||||||
import { FeatureNode } from "game/layers";
|
import { FeatureNode } from "game/layers";
|
||||||
import { PersistentRef } from "game/persistence";
|
import { Persistent } from "game/persistence";
|
||||||
import player from "game/player";
|
import player from "game/player";
|
||||||
import { computeComponent, processedPropType, wrapRef } from "util/vue";
|
import { computeComponent, processedPropType, wrapRef } from "util/vue";
|
||||||
import { computed, defineComponent, nextTick, PropType, Ref, ref, toRefs, unref, watch } from "vue";
|
import { computed, defineComponent, nextTick, PropType, Ref, ref, toRefs, unref, watch } from "vue";
|
||||||
|
@ -46,7 +46,7 @@ export default defineComponent({
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
minimized: {
|
minimized: {
|
||||||
type: Object as PropType<PersistentRef<boolean>>,
|
type: Object as PropType<Persistent<boolean>>,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
minWidth: {
|
minWidth: {
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
import { getUniqueID, Replace } from "features/feature";
|
import { getUniqueID, Replace } from "features/feature";
|
||||||
import { globalBus } from "game/events";
|
import { globalBus } from "game/events";
|
||||||
import { GenericLayer } from "game/layers";
|
import { GenericLayer } from "game/layers";
|
||||||
import {
|
import { DefaultValue, Persistent, persistent, PersistentState } from "game/persistence";
|
||||||
DefaultValue,
|
|
||||||
Persistent,
|
|
||||||
persistent,
|
|
||||||
PersistentRef,
|
|
||||||
PersistentState
|
|
||||||
} from "game/persistence";
|
|
||||||
import Decimal from "util/bignum";
|
import Decimal from "util/bignum";
|
||||||
import { Computable, GetComputableType, processComputable } from "util/computed";
|
import { Computable, GetComputableType, processComputable } from "util/computed";
|
||||||
import { createLazyProxy } from "util/proxies";
|
import { createLazyProxy } from "util/proxies";
|
||||||
|
@ -70,7 +64,7 @@ export function createReset<T extends ResetOptions>(
|
||||||
}
|
}
|
||||||
|
|
||||||
const listeners: Record<string, Unsubscribe | undefined> = {};
|
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));
|
const resetTime = persistent<Decimal>(new Decimal(0));
|
||||||
listeners[layer.id] = layer.on("preUpdate", diff => {
|
listeners[layer.id] = layer.on("preUpdate", diff => {
|
||||||
resetTime.value = Decimal.add(resetTime.value, diff);
|
resetTime.value = Decimal.add(resetTime.value, diff);
|
||||||
|
|
Loading…
Reference in a new issue