Skip to content

Commit

Permalink
Merge pull request #28 from pmacom/release/0.0.33
Browse files Browse the repository at this point in the history
updating build
  • Loading branch information
pmacom authored May 5, 2022
2 parents 6ee229f + 20082a6 commit 2e904c1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
8 changes: 2 additions & 6 deletions src/utils/AnimationQueue.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// @ts-ignore
import _Map from 'es6-map'

// @ts-ignore
import _Set from 'es6-set'
declare const Map: any

/**
* Usage
Expand All @@ -29,7 +25,7 @@ export interface Dash_AnimationQueue_Setting {
class AnimationQueue_Controller implements ISystem {
private system: ISystem
private nonce: number = 0
private queue: typeof _Map = new _Map()
private queue: typeof Map = new Map()
constructor(){ this.system = this }
add(setting: Dash_AnimationQueue_Setting): Dash_AnimationQueue_Setting {
setting.id = this.nonce++
Expand Down
14 changes: 7 additions & 7 deletions src/utils/Countdown.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Dash_OnUpdateFrame, Dash_OnUpdateFrame_Instance } from "./OnUpdateFrame"
// @ts-ignore
import _Map from 'es6-map'

// @ts-ignore
import _Set from 'es6-set'
declare const Set: any

export class Dash_Countdown {
private remaining: number = 0
private timer: Dash_OnUpdateFrame_Instance
private seconds: number = 0
private onCompleteMap: _Set<()=>void> = new _Set()
private onUpdateMap: _Set<(remaining: number) => void> = new _Set()
private onSecondMap: _Set<(remaining: number) => void> = new _Set()
private onCompleteMap: typeof Set = new Set()
private onUpdateMap: typeof Set = new Set()
private onSecondMap: typeof Set = new Set()
// private onCompleteMap: Set<()=>void> = new Set()
// private onUpdateMap: Set<(remaining: number) => void> = new Set()
// private onSecondMap: Set<(remaining: number) => void> = new Set()

constructor(){
this.timer = Dash_OnUpdateFrame.add((data: any, dt: number) => this.onFrame(data, dt))
Expand Down
8 changes: 3 additions & 5 deletions src/utils/DynamicImage.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { Dash_OnUpdateFrame, Dash_OnUpdateFrame_Instance } from "../utils/OnUpdateFrame"
// @ts-ignore
import _Map from 'es6-map'

// @ts-ignore
import _Set from 'es6-set'
declare const Map: any

interface IDynamicImageSettings {
from: string | number,
Expand All @@ -20,7 +17,8 @@ interface IDynamicImageAction {

export class DynamicImage {
private animation: Dash_OnUpdateFrame_Instance
private tweens: _Map<string, IDynamicImageAction> = new _Map()
private tweens: typeof Map = new Map()
// private tweens: Map<string, IDynamicImageAction> = new Map()

constructor(public image: UIImage){
this.animation = Dash_OnUpdateFrame.add((data: any, dt: number) => this.update(data, dt))
Expand Down
10 changes: 3 additions & 7 deletions src/utils/OnUpdateFrame.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// @ts-ignore
import _Map from 'es6-map'

// @ts-ignore
import _Set from 'es6-set'

/**
* Usage
**
Expand All @@ -14,6 +8,8 @@ import _Set from 'es6-set'
Wait(() => { trackEntityController.stop() }, 3)
*/

declare const Map: any

export interface Dash_OnUpdateFrame_Setting {
id?: number
data?: any
Expand All @@ -29,7 +25,7 @@ export interface Dash_OnUpdateFrame_Instance {
export class Dash_OnUpdateFrame_Controller implements ISystem {
private system: ISystem
private nonce: number = 0
private queue: typeof _Map = new _Map()
private queue: typeof Map = new Map()
constructor(){ this.system = this }
add(onFrame: (data: any, dt: number) => void, data?: any): Dash_OnUpdateFrame_Instance {
const setting = { id: this.nonce++, onFrame, data }
Expand Down

0 comments on commit 2e904c1

Please sign in to comment.