Skip to content

Commit

Permalink
update information paramter of getHit, hit methods in actor script
Browse files Browse the repository at this point in the history
  • Loading branch information
izure committed Jul 2, 2021
1 parent a72738a commit 35ab9f7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "background.js",
"dependencies": {
"@eriengine/plugin-actor": "^1.5.4",
"@eriengine/plugin-actor": "^1.5.5",
"@eriengine/plugin-dialogue": "^1.4.3",
"@eriengine/plugin-feeling": "^1.0.0",
"@eriengine/plugin-fog-of-war": "^1.3.1",
Expand Down
8 changes: 2 additions & 6 deletions src/Template/Game/ACTOR_SCRIPT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import BaseActor from '@/BaseActor'

{{ DATA_LISTS }}

type SkillInformation<K extends keyof typeof Skills> = {
[key in keyof ReturnType<typeof Skills[K]['default']>]: ReturnType<typeof Skills[K]['default']>[key]
}

/**
* 타입 추론을 위한 클래스 타입입니다.
* 해당하는 올바른 액터를 선택하여 주십시오.
Expand Down Expand Up @@ -70,7 +66,7 @@ export function onActorEnd(this: Actor): void {
* @param target 적중시킨 대상 액터입니다.
* @param information 적중시킨 스킬에 대한 정보입니다.
*/
export function onActorHit(this: Actor, target: BaseActor, information: Types.Json): void {
export function onActorHit(this: Actor, target: BaseActor, information: any): void {
{{ onActorHit }}
}

Expand All @@ -79,7 +75,7 @@ export function onActorHit(this: Actor, target: BaseActor, information: Types.Js
* @param from 적중당한 스킬을 사용한 대상 액터입니다.
* @param information 적중당한 스킬에 대한 정보입니다.
*/
export function onActorGetHit(this: Actor, from: BaseActor, information: Types.Json): void {
export function onActorGetHit(this: Actor, from: BaseActor, information: any): void {
{{ onActorGetHit }}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Template/Project/PACKAGE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"phaser": "^3.55.0",
"process": "^0.11.10",
"localforage": "^1.9.0",
"@eriengine/plugin-actor": "^1.5.4",
"@eriengine/plugin-actor": "^1.5.5",
"@eriengine/plugin-dialogue": "^1.4.3",
"@eriengine/plugin-feeling": "^1.0.0",
"@eriengine/plugin-fog-of-war": "^1.3.1",
Expand Down

0 comments on commit 35ab9f7

Please sign in to comment.