You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
今は
ReceivedInfo
という形で受け取ったオブジェクト(アイテムやコイン等)の情報を返しているが、アイテム消費なども考えるともう少し汎用的な形に整理した方がよいのではないか?例えば、
ServerEvent
のようなInterfaceにして、その中にReceivedEvent
,LevelUpEvent
のような形で、様々な種類の情報を返せるようにするとか?それとも同イベントの中に、種類に応じて
ReceivedInfo
等を持つ形にするとか?または、もっと単純に
{received: ReceivedInfo[], event: XxxEvent[]}
のような返し方をするとか?(APIを使う側的には最後のやつが楽かもしれないが、API的には前者の方が美しそう。)
The text was updated successfully, but these errors were encountered: