/** constructor */ public Task_SortList(Render2D a_render2d) { //render2d this.render2d = a_render2d; //layerlist this.layerlist = a_render2d.GetLayerList(); //spritelist this.spritelist = a_render2d.GetSpriteList(); //textlist this.textlist = a_render2d.GetTextList(); //inputfieldlist this.inputfieldlist = a_render2d.GetInputFieldList(); //canceltoken this.canceltoken = new Fee.TaskW.CancelToken(); //frame this.frame = 0; this.frame_max = 120; //関数登録。 this.task_list = new Fee.TaskW.Task <int> [3]; for (int ii = 0; ii < this.task_list.Length; ii++) { this.task_list[ii] = new Fee.TaskW.Task <int>(Fee.TaskW.Mode.InstanceMode_Function); } this.task_list[0].SetFunction(() => { return(this.TaskMain_SpriteList(this.canceltoken)); }); this.task_list[1].SetFunction(() => { return(this.TaskMain_TextList(this.canceltoken)); }); this.task_list[2].SetFunction(() => { return(this.TaskMain_InputFieldList(this.canceltoken)); }); }
/** constructor */ public ResourceList(Render2D a_render2d) { //render2d this.render2d = a_render2d; //screen this.screen = a_render2d.GetScreen(); //layerlist this.layerlist = a_render2d.GetLayerList(); //spritelist this.spritelist = a_render2d.GetSpriteList(); //textlist this.textlist = a_render2d.GetTextList(); //inputfieldlist this.inputfieldlist = a_render2d.GetInputFieldList(); //frame this.frame = 0; this.frame_max = 120; }