Skip to content

Commit

Permalink
#128 player v3との連携処理を改修(WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Feb 4, 2025
1 parent bf9a114 commit 1548fb5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
14 changes: 14 additions & 0 deletions src/application/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { execute as applicationGotoViewUseCase } from "./Application/usecase/App
import { execute as contextRunService } from "./Context/service/ContextRunService";
import { $getConfig } from "./variable/Config";
import { $getContext } from "./variable/Context";
import { response } from "../infrastructure/Response/variable/Response";

/**
* @description シーン遷移のコントロールを行うクラス。
Expand Down Expand Up @@ -99,4 +100,17 @@ export class Application
{
return $getContext();
}

/**
* @description configで設定したリクエストのレスポンスマップを返却します
* Returns the response map of the request set in config
*
* @returns {Map<string, any>}
* @method
* @public
*/
getResponse (): Map<string, any>
{
return response;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export const execute = (default_loader: DefaultLoader): void =>
continue ;
}

const expandJob = sprite.getLocalVariable("expandJob") as Job;
const expandJob = shape.getLocalVariable("expandJob") as Job;
expandJob.stop();

const reduceJob = sprite.getLocalVariable("reduceJob") as Job;
const reduceJob = shape.getLocalVariable("reduceJob") as Job;
reduceJob.stop();
}

Expand Down
8 changes: 3 additions & 5 deletions src/view/ViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ export class ViewModel
* Called at the timing when the root Sprite is attached.
*
* @param {View} view
* @return {Promise<View>}
* @return {Promise<void>}
* @method
* @abstract
*/
async bind (view: View): Promise<View>
{
return view;
}
// eslint-disable-next-line unused-imports/no-unused-vars
async bind (view: View): Promise<void> { return void 0 }

/**
* @description 新しいViewクラスがアタッチされる前にコールされます。
Expand Down

0 comments on commit 1548fb5

Please sign in to comment.