Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Aug 12, 2023
1 parent 7374484 commit ab37332
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/.decls/cn/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface simple_event_caller extends base_event_caller {
[key: string]: simple_event_caller,//扩展事件名称
}
/**
* 通用事件调用器
* 通用事件调用器
* 调用时传入一个对象以触发事件!
* @example
* let caller=jsstp.get_caller_of_event("OnTest");
Expand All @@ -62,10 +62,14 @@ interface common_event_caller extends base_event_caller{
}

/**
* 比{@link jsstp_t}多了一个ghost_info属性
* 比{@link jsstp_t}多了一个ghost_info属性
* 依赖{@link jsstp_t.default_info}中的`ReceiverGhostHWnd`定向给特定的ghost发送信息
* @see {@link jsstp_with_ghost_info_t.ghost_info}
*/
interface jsstp_with_ghost_info_t extends jsstp_t{
/**
* 该jsstp_t实例所指向的ghost的信息
*/
ghost_info: single_fmo_info_t
}
//定义一个包装器
Expand Down
8 changes: 6 additions & 2 deletions src/.decls/en/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface simple_event_caller extends base_event_caller {
[key: string]: simple_event_caller,//扩展事件名称
}
/**
* Generic Event Caller
* Generic Event Caller
* Called by passing in an object to trigger an event!
* @example
* let caller=jsstp.get_caller_of_event("OnTest");
Expand All @@ -62,10 +62,14 @@ interface common_event_caller extends base_event_caller{
}

/**
* One more ghost_info attribute than {@link jsstp_t}
* One more ghost_info attribute than {@link jsstp_t}
* Relies on `ReceiverGhostHWnd` in {@link jsstp_t.default_info} to direct messages to a specific ghost.
* @see {@link jsstp_with_ghost_info_t.ghost_info}
*/
interface jsstp_with_ghost_info_t extends jsstp_t{
/**
* Information about the ghost pointed to by this instance of jsstp_t
*/
ghost_info: single_fmo_info_t
}
//定义一个包装器
Expand Down
8 changes: 6 additions & 2 deletions src/.decls/jp/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface simple_event_caller extends base_event_caller {
[key: string]: simple_event_caller,//扩展事件名称
}
/**
* 汎用イベント・コーラー
* 汎用イベント・コーラー
* イベントをトリガーするオブジェクトを渡すことで呼び出される!
* @example
* let caller=jsstp.get_caller_of_event("OnTest");
Expand All @@ -62,10 +62,14 @@ interface common_event_caller extends base_event_caller{
}

/**
* {@link jsstp_t}よりもghost_info属性が1つ多い。
* link jsstp_t} よりも ghost_info 属性が1つ多い。
* 特定のゴーストにメッセージを送るには {@link jsstp_t.default_info} の `ReceiverGhostHWnd` に依存する。
* @see {@link jsstp_with_ghost_info_t.ghost_info}
*/
interface jsstp_with_ghost_info_t extends jsstp_t{
/**
* このjsstp_tのインスタンスが指すゴーストに関する情報
*/
ghost_info: single_fmo_info_t
}
//定义一个包装器
Expand Down

0 comments on commit ab37332

Please sign in to comment.