File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ declare namespace UpdatableScheduler {
102102 function createNewScope ( name : string ) : UpdatableSchedulerScope ;
103103 function getMainServerScope ( ) : UpdatableSchedulerScope ;
104104 function getMainLocalScope ( ) : UpdatableSchedulerScope ;
105- function createServer ( obj : IUpdatable , func : ( ) => void ) : UpdatableHandle ;
105+ function createServer ( func : ( ) => void , obj ?: Scriptable ) : UpdatableHandle ;
106106 function destroyRawHandle ( handle : number ) : boolean ;
107107 function getByRawHandle ( ) : IUpdatable ;
108108 function getScopeByRawHandle ( ) : UpdatableSchedulerScope ;
@@ -125,9 +125,8 @@ declare namespace UpdatableScheduler {
125125declare class UpdatableSchedulerScope {
126126 public setCurrentTick ( tickNo : number ) : void ;
127127 public getCurrentTick ( ) : number ;
128- public createRawHandle ( object : Scriptable , func : ( ) => void ) : number ;
129- public create ( object : Scriptable , func : ( ) => void ) : UpdatableHandle ;
130- public create ( object : Scriptable ) : UpdatableHandle ;
128+ public createRawHandle ( func : ( ) => void , object ?: Scriptable ) : number ;
129+ public create ( func : ( ) => void , object ?: Scriptable ) : UpdatableHandle ;
131130 public clearAll ( ) : void ;
132131 public executeTickForScope ( tickNo : number , timeLimitUs : number ) : void ;
133132}
You can’t perform that action at this time.
0 commit comments