MCPcopy Create free account
hub / github.com/esengine/esengine / initialize

Method initialize

packages/core/src/Utils/Timers/Timer.ts:56–61  ·  view source on GitHub ↗
(timeInsSeconds: number, repeats: boolean, context: TContext, onTime: (timer: ITimer<TContext>)=>void)

Source from the content-addressed store, hash-verified

54 }
55
56 public initialize(timeInsSeconds: number, repeats: boolean, context: TContext, onTime: (timer: ITimer<TContext>)=>void){
57 this._timeInSeconds = timeInsSeconds;
58 this._repeats = repeats;
59 this.context = context;
60 this._onTime = onTime.bind(context);
61 }
62
63 /**
64 * 空出对象引用,以便在js需要时GC可以清理它们的引用

Callers 1

scheduleMethod · 0.95

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected