2021-03-02 08:50:23 +00:00
|
|
|
import { Ref } from "actor";
|
|
|
|
import { Record } from "preserves";
|
|
|
|
|
2021-03-02 11:41:06 +00:00
|
|
|
export const _BoxState = Symbol.for('BoxState');
|
2021-03-02 08:50:23 +00:00
|
|
|
export const BoxState = Record.makeConstructor<{value: number}, Ref>()(
|
2021-03-02 11:41:06 +00:00
|
|
|
_BoxState, ['value']);
|
|
|
|
|
|
|
|
export const _SetBox = Symbol.for('SetBox');
|
2021-03-02 08:50:23 +00:00
|
|
|
export const SetBox = Record.makeConstructor<{newValue: number}, Ref>()(
|
2021-03-02 11:41:06 +00:00
|
|
|
_SetBox, ['newValue']);
|